Implemented print keyword and associated tests

This commit is contained in:
2024-10-07 12:13:06 +11:00
parent 956ebbeb28
commit ff13b5cf38
16 changed files with 346 additions and 60 deletions

View File

@@ -33,6 +33,10 @@ typedef enum Toy_OpcodeType {
//control instructions
TOY_OPCODE_RETURN,
//various action instructions
TOY_OPCODE_PRINT,
//TODO: clear the program stack
//meta instructions
TOY_OPCODE_PASS,
TOY_OPCODE_ERROR,