I decided to just push what I've got, so we can add each operation as it's own pull request. Currently the interpreter can do the following:
Currently only supports opcodes from 0-75
Evaluate a script and return true or false if the evaluation succeeded or failed
Execute one step in the script
Has basic test fixtures set up
For each new op_code we implement, we can create the corresponding test fixtures, implement that op_code in the switch/case in interpreter.js and submit a pull request. Let me know if your thoughts on that approach.
I decided to just push what I've got, so we can add each operation as it's own pull request. Currently the interpreter can do the following:
For each new op_code we implement, we can create the corresponding test fixtures, implement that op_code in the switch/case in
interpreter.js
and submit a pull request. Let me know if your thoughts on that approach.