feat(parser): assignments handled
This commit is contained in:
parent
fe3c4243c8
commit
28749a2992
2 changed files with 18 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue