diff --git a/lang/ast/class.c b/lang/ast/class.c index 6a306f0..872c5e4 100644 --- a/lang/ast/class.c +++ b/lang/ast/class.c @@ -176,7 +176,7 @@ static void collect_children( struct ast_node_type class_node_ops = { .n_add_child = add_child, - .n_print = print, + .n_print = print, .n_init_state = init_state, .n_collect_children = collect_children, .n_state_size = sizeof(struct class_parser_state), diff --git a/lang/ast/double.c b/lang/ast/double.c index dbffc33..95371c4 100644 --- a/lang/ast/double.c +++ b/lang/ast/double.c @@ -9,6 +9,6 @@ static void print(struct ivy_ast_node *node) } struct ast_node_type double_node_ops = { - .n_state_size = sizeof(struct parser_state), - .n_node_size = sizeof(struct ivy_ast_double_node), + .n_state_size = sizeof(struct parser_state), + .n_node_size = sizeof(struct ivy_ast_double_node), }; diff --git a/lang/ast/expr.c b/lang/ast/expr.c index 540710c..a049b0f 100644 --- a/lang/ast/expr.c +++ b/lang/ast/expr.c @@ -651,7 +651,7 @@ struct ast_node_type expr_node_ops = { .n_add_child = add_child, .n_state_size = sizeof(struct expr_parser_state), .n_node_size = sizeof(struct ivy_ast_expr_node), - .n_token_parsers = { + .n_token_parsers = { TOK_PARSER(IDENT, parse_ident), TOK_PARSER(ATOM, parse_atom), TOK_PARSER(STRING, parse_string), diff --git a/lang/ast/ident.c b/lang/ast/ident.c index 1020252..ca80664 100644 --- a/lang/ast/ident.c +++ b/lang/ast/ident.c @@ -10,6 +10,6 @@ static void print(struct ivy_ast_node *node) struct ast_node_type ident_node_ops = { .n_print = print, - .n_state_size = sizeof(struct parser_state), - .n_node_size = sizeof(struct ivy_ast_ident_node), + .n_state_size = sizeof(struct parser_state), + .n_node_size = sizeof(struct ivy_ast_ident_node), }; diff --git a/lang/ast/int.c b/lang/ast/int.c index 2ea631c..972592d 100644 --- a/lang/ast/int.c +++ b/lang/ast/int.c @@ -10,6 +10,6 @@ static void print(struct ivy_ast_node *node) struct ast_node_type int_node_ops = { .n_print = print, - .n_state_size = sizeof(struct parser_state), - .n_node_size = sizeof(struct ivy_ast_int_node), + .n_state_size = sizeof(struct parser_state), + .n_node_size = sizeof(struct ivy_ast_int_node), }; diff --git a/lang/ast/msg.c b/lang/ast/msg.c index e659fb8..9fb9961 100644 --- a/lang/ast/msg.c +++ b/lang/ast/msg.c @@ -23,6 +23,6 @@ static void collect_children( struct ast_node_type msg_node_ops = { .n_collect_children = collect_children, - .n_state_size = sizeof(struct parser_state), - .n_node_size = sizeof(struct ivy_ast_msg_node), + .n_state_size = sizeof(struct parser_state), + .n_node_size = sizeof(struct ivy_ast_msg_node), }; diff --git a/lang/ast/msgh.c b/lang/ast/msgh.c index cc983d6..9b9b571 100644 --- a/lang/ast/msgh.c +++ b/lang/ast/msgh.c @@ -117,10 +117,10 @@ static void collect_children( struct ast_node_type msgh_node_ops = { .n_add_child = add_child, - .n_init_state = init_state, + .n_init_state = init_state, .n_collect_children = collect_children, - .n_state_size = sizeof(struct msgh_parser_state), - .n_node_size = sizeof(struct ivy_ast_msgh_node), + .n_state_size = sizeof(struct msgh_parser_state), + .n_node_size = sizeof(struct ivy_ast_msgh_node), .n_token_parsers = { TOK_PARSER(LINEFEED, parse_linefeed), }, diff --git a/lang/ast/op.c b/lang/ast/op.c index ea246bc..d78ec5b 100644 --- a/lang/ast/op.c +++ b/lang/ast/op.c @@ -27,6 +27,6 @@ static void collect_children( struct ast_node_type op_node_ops = { .n_print = print, .n_collect_children = collect_children, - .n_state_size = sizeof(struct parser_state), - .n_node_size = sizeof(struct ivy_ast_op_node), + .n_state_size = sizeof(struct parser_state), + .n_node_size = sizeof(struct ivy_ast_op_node), }; diff --git a/lang/ast/string.c b/lang/ast/string.c index 349103f..78584ed 100644 --- a/lang/ast/string.c +++ b/lang/ast/string.c @@ -2,6 +2,6 @@ #include "node.h" struct ast_node_type string_node_ops = { - .n_state_size = sizeof(struct parser_state), - .n_node_size = sizeof(struct ivy_ast_string_node), + .n_state_size = sizeof(struct parser_state), + .n_node_size = sizeof(struct ivy_ast_string_node), }; diff --git a/lang/ast/unit-import.c b/lang/ast/unit-import.c index 58fec01..289db2c 100644 --- a/lang/ast/unit-import.c +++ b/lang/ast/unit-import.c @@ -94,7 +94,7 @@ static void init_state(struct ivy_parser *ctx, struct parser_state *sp) struct ast_node_type unit_import_node_ops = { .n_add_child = add_child, - .n_print = print, + .n_print = print, .n_init_state = init_state, .n_state_size = sizeof(struct unit_import_parser_state), .n_node_size = sizeof(struct ivy_ast_unit_import_node), diff --git a/lang/ast/unit-package.c b/lang/ast/unit-package.c index a3bb9b3..9fb1873 100644 --- a/lang/ast/unit-package.c +++ b/lang/ast/unit-package.c @@ -95,7 +95,7 @@ static void init_state(struct ivy_parser *ctx, struct parser_state *sp) struct ast_node_type unit_package_node_ops = { .n_add_child = add_child, - .n_print = print, + .n_print = print, .n_init_state = init_state, .n_state_size = sizeof(struct unit_package_parser_state), .n_node_size = sizeof(struct ivy_ast_unit_package_node), diff --git a/lang/ast/unit.c b/lang/ast/unit.c index b6891a9..6f50891 100644 --- a/lang/ast/unit.c +++ b/lang/ast/unit.c @@ -57,7 +57,7 @@ struct ast_node_type unit_node_ops = { .n_collect_children = collect_children, .n_state_size = sizeof(struct parser_state), .n_node_size = sizeof(struct ivy_ast_unit_node), - .n_keyword_parsers = { + .n_keyword_parsers = { KW_PARSER(PACKAGE, parse_package_keyword), KW_PARSER(CLASS, parse_class_keyword), KW_PARSER(USE, parse_use_keyword),