Skip to content

Commit

Permalink
Resolved "dangling else" problem in HLSL grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 27, 2009
1 parent c16f01a commit 4fd93c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader_parser_hlsl.lemon
Expand Up @@ -56,6 +56,10 @@
%right TYPECAST EXCLAMATION COMPLEMENT MINUSMINUS PLUSPLUS.
%left DOT LBRACKET RBRACKET LPAREN RPAREN.

// bump up the precedence of ELSE, to avoid shift/reduce conflict on the
// usual "dangling else ambiguity" ...
%right ELSE.


// The rules...

Expand Down

0 comments on commit 4fd93c9

Please sign in to comment.