Some REPL enhancements like a history, better error messages and some Makefile enhancements.
This commit is contained in:
parent
b69c8305f6
commit
56289e87a2
5 changed files with 124 additions and 8 deletions
6
src/vm.h
6
src/vm.h
|
|
@ -43,6 +43,12 @@ void vm_init(VM *vm);
|
|||
void vm_clear_output(VM *vm);
|
||||
void vm_print_output(VM *vm);
|
||||
void vm_free(VM *vm);
|
||||
|
||||
// reset VM to initial state (free globals/locals/output; keep VM object)
|
||||
void vm_reset(VM *vm);
|
||||
|
||||
// print non-nil globals (index and value) to stdout
|
||||
void vm_dump_globals(VM *vm);
|
||||
// run entry Bytecode (pushes first frame)
|
||||
void vm_run(VM *vm, Bytecode *entry);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue