implemented nullable type notation

This commit is contained in:
cozis
2022-12-04 18:39:42 +01:00
parent d610a973f4
commit 7a07a1eb3c
12 changed files with 156 additions and 9 deletions
+3 -1
View File
@@ -12,4 +12,6 @@
#define TYPENAME_BUFFER "Buffer"
#define TYPENAME_FILE "File"
#define TYPENAME_DIRECTORY "Directory"
#define TYPENAME_DIRECTORY "Directory"
#define TYPENAME_NULLABLE "NullableType"
+1
View File
@@ -82,6 +82,7 @@ static const InstrInfo instr_table[] = {
[OPCODE_GRT] = {"GRT", 0, NULL},
[OPCODE_LEQ] = {"LEQ", 0, NULL},
[OPCODE_GEQ] = {"GEQ", 0, NULL},
[OPCODE_NLB] = {"NLB", 0, NULL},
[OPCODE_ASS] = {"ASS", 1, (OperandType[]) {OPTP_STRING}},
[OPCODE_POP] = {"POP", 1, (OperandType[]) {OPTP_INT}},
[OPCODE_CALL] = {"CALL", 2, (OperandType[]) {OPTP_INT, OPTP_INT}},
+1
View File
@@ -67,6 +67,7 @@ typedef enum {
OPCODE_GRT,
OPCODE_LEQ,
OPCODE_GEQ,
OPCODE_NLB,
OPCODE_ASS,
OPCODE_POP,
OPCODE_CALL,