feat: yet another new parser architecture
This commit is contained in:
parent
6dd19a75ad
commit
96ac2fea77
9 changed files with 182 additions and 128 deletions
|
|
@ -73,6 +73,9 @@ int main(int argc, char **argv)
|
|||
// init lexer context
|
||||
struct lexer_context *ctx = calloc(1, sizeof(struct lexer_context));
|
||||
|
||||
// init parser
|
||||
int parser_init();
|
||||
|
||||
// Retrieve and build first AST
|
||||
struct ast *command_ast = get_ast(ctx);
|
||||
|
||||
|
|
@ -107,6 +110,7 @@ int main(int argc, char **argv)
|
|||
return ERR_INPUT_PROCESSING;
|
||||
|
||||
ast_free(&command_ast);
|
||||
parser_close();
|
||||
|
||||
return return_code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue