From 6ab9c3732793b6fd40e6388cf1b08756194c0ea6 Mon Sep 17 00:00:00 2001 From: Quinn Stephens Date: Thu, 7 Nov 2024 16:59:19 -0500 Subject: [compiler] Parse return statements Laid groundwork for statements and AST trees. Currently return values are not supported, expression parsing must be implemented first. Also stopped dumping parsed type definitions. Signed-off-by: Quinn Stephens --- compiler/lexer/keywords.c | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/lexer/keywords.c') diff --git a/compiler/lexer/keywords.c b/compiler/lexer/keywords.c index 88c2e67..dbae881 100644 --- a/compiler/lexer/keywords.c +++ b/compiler/lexer/keywords.c @@ -69,6 +69,7 @@ keywords_init(void) add_keyword("type", TK_TYPE); add_keyword("enum", TK_ENUM); add_keyword("struct", TK_STRUCT); + add_keyword("ret", TK_RET); initialized = true; } -- cgit v1.2.3