Implemented tests for Toy_Bytecode and Toy_Routine

This commit is contained in:
2024-09-22 14:13:50 +10:00
parent 4567484038
commit a2625fa6d4
6 changed files with 811 additions and 15 deletions

View File

@@ -3,9 +3,9 @@
#include "toy_common.h"
#include "toy_ast.h"
//routine - internal structure that holds the individual parts of a compiled routine
//internal structure that holds the individual parts of a compiled routine
typedef struct Toy_Routine {
unsigned char* param; //c-string params in sequence
unsigned char* param; //c-string params in sequence (could be moved below the jump table?)
int paramCapacity;
int paramCount;