fix(parser): small typo

This commit is contained in:
matteo 2026-01-29 19:11:13 +01:00
parent 98d18eef7d
commit a70943e5cc

View file

@ -160,13 +160,14 @@ struct ast *parse_command(struct lexer_context *ctx)
} }
else if (is_first(*token, RULE_SHELL_COMMAND)) else if (is_first(*token, RULE_SHELL_COMMAND))
{ {
parse_shell_command(ctx); result = parse_shell_command(ctx);
} }
else else
{ {
perror("Syntax error: unexpected token"); perror("Syntax error: unexpected token");
return NULL; return NULL;
} }
return result;
} }
/* @brief: frees command_elements and redirections lists (helper func) /* @brief: frees command_elements and redirections lists (helper func)