Skip to content

Commit

Permalink
Mask compile-time shift/reduce conflict due to if statement ambiguity
Browse files Browse the repository at this point in the history
(cherry picked from commit c4b8be1)
  • Loading branch information
liviuchircu committed Nov 16, 2013
1 parent 3d0d871 commit 8f8c5de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cfg.y
Expand Up @@ -473,6 +473,11 @@ extern int line;
%type <strval> route_name
%type <intval> route_param

/*
* since "if_cmd" is inherently ambiguous,
* skip 1 harmless shift/reduce conflict when compiling our grammar
*/
%expect 1


%%
Expand Down

0 comments on commit 8f8c5de

Please sign in to comment.