feat: final firsts initialization
This commit is contained in:
parent
98d18eef7d
commit
3601c3136f
5 changed files with 104 additions and 50 deletions
|
|
@ -160,13 +160,15 @@ struct ast *parse_command(struct lexer_context *ctx)
|
|||
}
|
||||
else if (is_first(*token, RULE_SHELL_COMMAND))
|
||||
{
|
||||
parse_shell_command(ctx);
|
||||
result = parse_shell_command(ctx);
|
||||
}
|
||||
else
|
||||
{
|
||||
perror("Syntax error: unexpected token");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* @brief: frees command_elements and redirections lists (helper func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue