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
+8
View File
@@ -22,6 +22,7 @@ typedef enum {
EXPR_DIV,
EXPR_ASS,
EXPR_INT,
EXPR_CALL,
EXPR_NONE,
EXPR_TRUE,
EXPR_FALSE,
@@ -79,6 +80,13 @@ typedef struct {
int count;
} OperExprNode;
typedef struct {
ExprNode base;
Node *func;
Node *argv;
int argc;
} CallExprNode;
typedef struct {
Node base;
Node *condition;