aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ast.h b/src/ast.h
index 0413f79..39d1a4e 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -30,7 +30,8 @@
F(AST_WHILE, "while statement") \
F(AST_FOR, "for statement") \
F(AST_VARDECL, "variable decl") \
- F(AST_VAR, "variable") \
+ F(AST_LOCAL_VAR, "local variable") \
+ F(AST_GLOBAL_VAR, "global variable") \
F(AST_RETURN, "return") \
F(AST_FUNC, "func") \
F(AST_BUILTIN, "builtin") \
@@ -120,7 +121,7 @@ typedef struct ast_node {
} var_decl;
struct {
- Variable *var;
+ Node *var;
Node *value;
} assign;