5 ms·
Niel Fraser, the guy who created the Blockly block programming toolkit also created a JS Interpreter which allows single stepping of code. https://neil.fraser.n
by techplex 10y ago
Niel Fraser, the guy who created the Blockly block programming toolkit also created a JS Interpreter which allows single stepping of code. https://neil.fraser.name/software/JS-Interpreter/docs.html https://neil.fraser.name/software/JS-Interpreter/docs.html
- thomasballinger 10y agoI've hacked on this interpreter some, it's pretty nice to read! It implements a very limited subset of JavaScript, something like ES3. I'd be really interested to hear about other similar implementations of JavaScript in JavaScript. I stopped working on https://github.com/thomasballinger/hotswapping-js-interp#js-interpreter-with-hot-swappable-functions https://github.com/thomasballinger/hotswapping-js-interp#js-... partially because copying the state of the interpreter was relatively slow. I'd be interested in implementations that would handle this better by using a more bytecode-like VM or immutable data structures.
- novaleaf 10y agowow! this is really awesome and perfect for my needs. thanks very much :)