fish-interpreter

0.4.0 • Public • Published

fish-interpreter

The interpreter for https://fishlanguage.com

Usage

const FishExecutor = require("fish-interpreter");

const source = `"hello, world"r\
          o;!?l<`;

const executor = new FishExecutor(source);

executor.onUpdate((e) => {
	// `e` is the executor
	if (e.hasTerminated) {
		console.log(e.output);
	}
});

executor.run();

See the documentation in doc/. See the files of https://fishlanguage.com for some more advanced usage

Readme

Keywords

none

Package Sidebar

Install

npm i fish-interpreter

Weekly Downloads

3

Version

0.4.0

License

ISC

Unpacked Size

1.21 MB

Total Files

58

Last publish

Collaborators

  • suppen