diff options
Diffstat (limited to 'vm.h')
| -rw-r--r-- | vm.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#pragma once +#include <stdint.h> + +typedef struct { + uint8_t *ip; +} VM; + +typedef struct { +} Chunk; + +typedef enum { + INTERPRET_OK, + INTERPRET_COMPILE_ERROR, + INTERPRET_RUNTIME_ERROR +} InterpretResult; + +void initVM(); +void freeVM(); +InterpretResult interpret(Chunk* chunk); + |
