JS-Interpreter icon indicating copy to clipboard operation
JS-Interpreter copied to clipboard

nodejs support

Open EasyHard opened this issue 10 years ago • 3 comments

Add nodejs support. It can be used like

var code = fs.readFileSync('./code/fib.js');
var Interpreter = require('./interpreter');
var myInterpreter = new Interpreter(code);
myInterpreter.run();
console.log('value:', myInterpreter.value.data);

and then node run.js where run.js is as above.

EasyHard avatar Sep 06 '14 14:09 EasyHard

:+1:

liebig avatar Apr 17 '15 10:04 liebig

:+1:

Lokidottir avatar Jun 25 '15 17:06 Lokidottir

Hi @EasyHard @liebig @Lokidottir

Does this have following functionalities.. function.bind array.filter array.map

I checked, But, it didn't work.

dinukadesilva avatar Feb 21 '16 09:02 dinukadesilva

A demo of node is now included in the repo: https://neil.fraser.name/software/JS-Interpreter/demos/node.js

NeilFraser avatar Mar 05 '24 14:03 NeilFraser