added function calls, native function objects and runtime builtins

This commit is contained in:
cozis
2021-11-02 13:19:06 +00:00
parent 051966a3f3
commit 87e9f4775b
12 changed files with 389 additions and 18 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ static const InstrInfo instr_table[] = {
[OPCODE_DIV] = {"DIV", 0, NULL},
[OPCODE_ASS] = {"ASS", 1, (OperandType[]) {OPTP_STRING}},
[OPCODE_POP] = {"POP", 1, (OperandType[]) {OPTP_INT}},
[OPCODE_CALL] = {"CALL", 1, (OperandType[]) {OPTP_INT}},
[OPCODE_PUSHINT] = {"PUSHINT", 1, (OperandType[]) {OPTP_INT}},
[OPCODE_PUSHFLT] = {"PUSHFLT", 1, (OperandType[]) {OPTP_FLOAT}},
[OPCODE_PUSHSTR] = {"PUSHSTR", 1, (OperandType[]) {OPTP_STRING}},