feat: yet another new parser architecture

This commit is contained in:
Gu://em_ 2026-01-23 17:01:26 +01:00
parent 6dd19a75ad
commit 96ac2fea77
9 changed files with 182 additions and 128 deletions

View file

@ -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;
}