merge new parser into dev
This commit is contained in:
commit
d707c6180b
16 changed files with 725 additions and 228 deletions
|
|
@ -31,6 +31,9 @@ static int main_loop(struct lexer_context *ctx, struct args_options *options,
|
|||
struct hash_map *vars)
|
||||
{
|
||||
int return_code = SUCCESS;
|
||||
// init parser
|
||||
int parser_init();
|
||||
|
||||
// Retrieve and build first AST
|
||||
struct ast *command_ast = get_ast(ctx);
|
||||
|
||||
|
|
@ -61,6 +64,7 @@ static int main_loop(struct lexer_context *ctx, struct args_options *options,
|
|||
return err_input(&vars);
|
||||
|
||||
ast_free(&command_ast);
|
||||
parser_close();
|
||||
|
||||
return return_code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue