Add parse_result_wrap to wrap a result with another parent node
Use the new wrap function to wrap numbers and immediate nodes
This commit is contained in:
@ -19,6 +19,7 @@ parse_result_t parse_success(ast_node_t *ast, tokenlist_entry_t *next);
|
||||
parse_result_t parse_token(tokenlist_entry_t *current,
|
||||
lexer_token_id_t token_id, node_id_t ast_id,
|
||||
token_validator_t is_valid);
|
||||
parse_result_t parse_result_wrap(node_id_t id, parse_result_t result);
|
||||
|
||||
extern error_t *err_parse_no_match;
|
||||
|
||||
|
Reference in New Issue
Block a user