Fix for GitHub issue #172: don't use %precedence in parser.
Older versions of bison don't support this. Use %nonassoc instead.
This commit is contained in:
parent
c0845d8bea
commit
0f2ce7da45
6
parse.y
6
parse.y
|
|
@ -696,9 +696,9 @@ static void current_function_set_statement(const YYLTYPE&loc, vector<Statement*>
|
|||
%nonassoc K_exclude
|
||||
|
||||
/* to resolve timeunits declaration/redeclaration ambiguity */
|
||||
%precedence no_timeunits_declaration
|
||||
%precedence one_timeunits_declaration
|
||||
%precedence K_timeunit K_timeprecision
|
||||
%nonassoc no_timeunits_declaration
|
||||
%nonassoc one_timeunits_declaration
|
||||
%nonassoc K_timeunit K_timeprecision
|
||||
|
||||
%%
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue