Forth
Forth programming environment implemented in JavaScript.
Use
Node.js
npm i forth -g
REPL
forth
Streaming CLI
forth < core.frt
Library
var forth = ;var f = ; // new instance of Forth machine// f.s -- is the duplex streamprocessstdin;
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.