ForthHub / forth

:four_leaf_clover: Forth engine in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forth

NPM version Build Status Build status Build Status

Forth programming environment implemented in JavaScript.

Use

Node.js

npm i forth -g

REPL

forth

Streaming CLI

forth < core.frt

Library

var forth = require('forth');
var f = forth(); // new instance of Forth machine
// f.s -- is the duplex stream
process.stdin.pipe(f.s).pipe(process.stdout);

Browser

use Browserify!

APIs

f.interpret(input, cb)

Run Forth interpreter.

input can be String or Stream

f.DS()

Data stack Array

f.RS()

Return stack Array

Testing

npm test

License

MIT LICENSE.

About

:four_leaf_clover: Forth engine in JavaScript

License:MIT License


Languages

Language:JavaScript 81.4%Language:Forth 18.6%