parser: Use right parameter, suppress warning about expected shift/reduce conflict
This commit is contained in:
parent
08ee194d59
commit
bf728be09b
@ -160,6 +160,8 @@ void parse_file(const char *f) {
|
|||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%expect 1
|
||||||
|
|
||||||
%union {
|
%union {
|
||||||
int number;
|
int number;
|
||||||
char *string;
|
char *string;
|
||||||
@ -404,7 +406,7 @@ workspace:
|
|||||||
|
|
||||||
optional_workspace_name:
|
optional_workspace_name:
|
||||||
/* empty */ { $<string>$ = NULL; }
|
/* empty */ { $<string>$ = NULL; }
|
||||||
| WHITESPACE workspace_name { $<string>$ = $<string>1; }
|
| WHITESPACE workspace_name { $<string>$ = $<string>2; }
|
||||||
;
|
;
|
||||||
|
|
||||||
workspace_name:
|
workspace_name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user