From 598be4cd1bdd79e4859ae30291f4d65682cc672a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 9 Jan 2025 22:26:02 +0200 Subject: initial reference checking --- src/ast.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ast.c') diff --git a/src/ast.c b/src/ast.c index 3069924..08178f7 100644 --- a/src/ast.c +++ b/src/ast.c @@ -228,6 +228,8 @@ void ast_dump(int depth, struct ast *n) DUMP(AST_NEG); DUMP(AST_LNOT); DUMP(AST_NOT); + DUMP(AST_REF); + DUMP(AST_DEREF); DUMP(AST_CONST_INT); DUMP(AST_CONST_CHAR); DUMP(AST_CONST_BOOL); @@ -652,6 +654,8 @@ const char *ast_str(enum ast_kind k) CASE(AST_NEG); CASE(AST_LNOT); CASE(AST_NOT); + CASE(AST_REF); + CASE(AST_DEREF); CASE(AST_CONST_INT); CASE(AST_CONST_CHAR); CASE(AST_CONST_BOOL); -- cgit v1.2.3