mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
Eliminate a reduce/reduce conflict in the function-like macro production.
Previously, an empty argument could be parsed as either an "argument_list" directly or first as an "argument" and then an "argument_list". We fix this by removing the possibility of an empty "argument_list" directly.
This commit is contained in:
parent
fcbbb46886
commit
db35d557a4
1 changed files with 1 additions and 4 deletions
|
|
@ -121,10 +121,7 @@ macro:
|
|||
;
|
||||
|
||||
argument_list:
|
||||
/* empty */ {
|
||||
$$ = _list_create (parser);
|
||||
}
|
||||
| argument {
|
||||
argument {
|
||||
$$ = _list_create (parser);
|
||||
_list_append_list ($$, $1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue