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.

(0) -6 +6 +10 +30 +100 tip

mercurial