lang: ast: implement parsing of true/false/null keyword constants
This commit is contained in:
@@ -91,6 +91,11 @@ struct ast_node_type expr_node_ops = {
|
||||
KW_PARSER(FINALLY, stmt_parse_end),
|
||||
KW_PARSER(END, stmt_parse_end),
|
||||
|
||||
/* keyword constants */
|
||||
KW_PARSER(TRUE, arith_parse_operand),
|
||||
KW_PARSER(FALSE, arith_parse_operand),
|
||||
KW_PARSER(NULL, arith_parse_operand),
|
||||
|
||||
/* operator/block keywords */
|
||||
KW_PARSER(IN, arith_parse_in),
|
||||
KW_PARSER(IS, arith_parse_operator),
|
||||
|
||||
Reference in New Issue
Block a user