mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
Eliminate a shift/reduce conflict.
By simply allowing for the argument_list production to be empty rather than the lower-level argument production to be empty.
This commit is contained in:
parent
8f6a828e4a
commit
ac070e8bf5
1 changed files with 6 additions and 2 deletions
|
|
@ -149,7 +149,10 @@ macro:
|
|||
;
|
||||
|
||||
argument_list:
|
||||
argument {
|
||||
/* empty */ {
|
||||
$$ = _argument_list_create (parser);
|
||||
}
|
||||
| argument {
|
||||
$$ = _argument_list_create (parser);
|
||||
_argument_list_append ($$, $1);
|
||||
}
|
||||
|
|
@ -164,8 +167,9 @@ argument_list:
|
|||
;
|
||||
|
||||
argument:
|
||||
/* empty */ {
|
||||
word {
|
||||
$$ = _string_list_create (parser);
|
||||
_string_list_append_item ($$, $1);
|
||||
}
|
||||
| argument word {
|
||||
_string_list_append_item ($1, $2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue