JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 37
  • Score
    100M100P100Q62650F
  • License MIT

Forth programming environment

Package Exports

  • forth

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (forth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Forth

NPM version 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.