feat(parser): assignments handled

This commit is contained in:
matteo 2026-01-29 12:38:03 +01:00
parent fe3c4243c8
commit 28749a2992
2 changed files with 18 additions and 11 deletions

View file

@ -74,7 +74,7 @@ struct ast *parse_prefix(struct lexer_context *ctx)
}
else if (is_first(*token, RULE_REDIRECTION))
return parse_redirection(ctx);
else
else
{
perror("Syntax error: expected a prefix (redirection or assignment)");
return NULL;