diff options
author | Quinn Stephens <quinn@osmora.org> | 2024-11-07 16:59:19 -0500 |
---|---|---|
committer | Quinn Stephens <quinn@osmora.org> | 2024-11-07 16:59:19 -0500 |
commit | 6ab9c3732793b6fd40e6388cf1b08756194c0ea6 (patch) | |
tree | e7ae86e1bad944192f0b6fd130cb7d84afa4f180 /compiler/lexer/keywords.c | |
parent | 063c40584ae78a396b558a5e2a08e3d871450c0b (diff) |
[compiler] Parse return statementsmain
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 <quinn@osmora.org>
Diffstat (limited to 'compiler/lexer/keywords.c')
-rw-r--r-- | compiler/lexer/keywords.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |