lang: ast: treat bang (!) as an unconsumed expression terminator

This commit is contained in:
2024-12-06 13:22:33 +00:00
parent 363b13534d
commit d3813dc514
3 changed files with 24 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ struct ast_node_type expr_node_ops = {
SYM_PARSER(CARET, arith_parse_caret),
SYM_PARSER(COMMA, arith_parse_comma),
SYM_PARSER(DOT, arith_parse_dot),
SYM_PARSER(BANG, arith_parse_bang),
SYM_PARSER(EQUAL_RIGHT_ANGLE, arith_parse_equal_right_angle),
},
.n_keyword_parsers = {