lang: ast: fix inconsistent indentation
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user