lang: ast: implement parsing of unnamed parameters

This commit is contained in:
2024-12-07 10:07:20 +00:00
parent 504fea6d9e
commit d404e21b33
2 changed files with 5 additions and 1 deletions

View File

@@ -40,6 +40,8 @@ struct ast_node_type expr_node_ops = {
SYM_PARSER(SEMICOLON, arith_parse_semicolon),
SYM_PARSER(UNDERSCORE, arith_parse_operand),
SYM_PARSER(CARET, arith_parse_caret),
/* treat colons as empty labels */
SYM_PARSER(COLON, arith_parse_label),
SYM_PARSER(COMMA, arith_parse_comma),
SYM_PARSER(DOT, arith_parse_dot),
SYM_PARSER(BANG, arith_parse_bang),