lang: ast: use fancy index manipulation to reduce the size of ast_node_type
This commit is contained in:
@@ -58,7 +58,7 @@ struct ast_node_type block_node_ops = {
|
||||
.n_state_size = sizeof(struct block_parser_state),
|
||||
.n_node_size = sizeof(struct ivy_ast_block_node),
|
||||
.n_keyword_parsers = {
|
||||
[IVY_KW_END] = parse_end,
|
||||
KW_PARSER(END, parse_end),
|
||||
},
|
||||
.n_expr_parser = {
|
||||
.expr_begin = parse_expr_begin,
|
||||
|
||||
Reference in New Issue
Block a user