lang: ast: replace ast node print callback with to_string
This commit is contained in:
@@ -45,11 +45,11 @@ typedef struct token_parse_result (*token_parse_function)(
|
||||
|
||||
struct ast_node_type {
|
||||
enum ivy_status (*n_add_child)(
|
||||
struct parser_state*, struct ivy_ast_node*);
|
||||
void (*n_print)(struct ivy_ast_node*);
|
||||
void (*n_init_state)(struct ivy_parser*, struct parser_state*, uintptr_t);
|
||||
struct parser_state*, struct ivy_ast_node *);
|
||||
void (*n_to_string)(struct ivy_ast_node *, struct b_string *);
|
||||
void (*n_init_state)(struct ivy_parser *, struct parser_state *, uintptr_t);
|
||||
void (*n_collect_children)(
|
||||
struct ivy_ast_node*, struct ivy_ast_node_iterator*);
|
||||
struct ivy_ast_node*, struct ivy_ast_node_iterator *);
|
||||
|
||||
size_t n_state_size;
|
||||
size_t n_node_size;
|
||||
|
||||
Reference in New Issue
Block a user