fix: small bugs to make it compile
This commit is contained in:
parent
c48d86c8de
commit
13018e0a03
10 changed files with 33 additions and 4 deletions
|
|
@ -186,7 +186,10 @@ struct ast *parse_input(struct lexer_context *ctx)
|
|||
struct token *token = PEEK_TOKEN();
|
||||
|
||||
if (token->type == TOKEN_EOF)
|
||||
return ast_create_list(NULL);
|
||||
{
|
||||
POP_TOKEN();
|
||||
return ast_create_end();
|
||||
}
|
||||
|
||||
if (token->type == TOKEN_NEWLINE)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue