parser: Use right parameter, suppress warning about expected shift/reduce conflict

next
Michael Stapelberg 2009-11-09 22:36:26 +01:00
parent 08ee194d59
commit bf728be09b
1 changed files with 3 additions and 1 deletions

View File

@ -160,6 +160,8 @@ void parse_file(const char *f) {
%}
%expect 1
%union {
int number;
char *string;
@ -404,7 +406,7 @@ workspace:
optional_workspace_name:
/* empty */ { $<string>$ = NULL; }
| WHITESPACE workspace_name { $<string>$ = $<string>1; }
| WHITESPACE workspace_name { $<string>$ = $<string>2; }
;
workspace_name: