Use new notation for accessing instruction fields

Add a bytecode interpreter \o/

Add debugMode switch

Add errors for when trying to index non-tables

Implement OP_SETGLOBAL

Print error on error

Return nil for non-existent table keys

Throw an error if trying to call a non-function

Implement OP_MOVE, OP_LOADNIL and OP_RETURN. Also change the way OP_CALL is implemented, and update the test code with a more complicated (kind of) sample.

Style fix

(0) +10 +100 tip

mercurial