Skip to content

Commit a1fb34a

Browse files
committed
feat: implement initial virtual machine runtime with stack operations and basic instruction execution, and define compiler parsing infrastructure.
1 parent d0d9c35 commit a1fb34a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "vm.h"
1212

1313

14-
#include "parser.h"
14+
typedef struct Parser Parser;
1515

1616
typedef enum {
1717
PREC_NONE,

src/runtime/vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "debug.h"
1111
#include "vm.h"
1212

13-
static void freeObjects(VM* vm);
13+
void freeObjects();
1414

1515
void initVM(VM *vm) { vm->stackTop = vm->stack; }
1616

0 commit comments

Comments
 (0)