fix: compiling but not working -- need debug

This commit is contained in:
Matteo Flebus 2026-01-15 20:42:28 +01:00
parent 1eecb1bd42
commit 04529f858c
4 changed files with 11 additions and 3 deletions

View file

@ -35,6 +35,7 @@ struct ast *get_ast()
token = pop_token();
break;
}
token = peek_token();
}
if (token == NULL)

View file

@ -54,7 +54,7 @@ static bool isterminator(struct token *token)
struct ast *parse_simple_command(void)
{
struct list *command_elements = NULL;
struct token *token = POP_TOKEN();
struct token *token = PEEK_TOKEN();
while (!isterminator(token))
{