Skip to content

Commit

Permalink
Keep it simple.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 28, 2009
1 parent 8e2fe3a commit f28a979
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mojoshader_parser_hlsl.lemon
Expand Up @@ -487,11 +487,7 @@ switch_case ::= DEFAULT COLON.

%type identifier { TokenData }
%destructor identifier { (void) ctx; } // !!! FIXME: remove this later, it's just to shut up the compiler for now.
identifier(A) ::= IDENTIFIER(B).
{
A.token = B.token;
A.tokenlen = B.tokenlen;
}
identifier(A) ::= IDENTIFIER(B). { A = B; }

// the expression stuff is based on Jeff Lee's ANSI C grammar.
primary_expr ::= identifier.
Expand Down

0 comments on commit f28a979

Please sign in to comment.