lang: implement elif keyword for more complex if-statements

This commit is contained in:
2025-04-24 09:45:26 +01:00
parent d37c07e5e4
commit cbec21b90f
5 changed files with 60 additions and 11 deletions

View File

@@ -160,6 +160,7 @@ struct ast_node_type block_node_ops = {
KW_PARSER(VAR, parse_var),
KW_PARSER(END, parse_end),
KW_PARSER(ELSE, parse_else),
KW_PARSER(ELIF, parse_else), /* same behaviour as ELSE */
KW_PARSER_FALLBACK(parse_keyword),
},
.n_symbol_parsers = {