From f28a979122f972bb885ac7ba47a9f7954cdf27fe Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 28 Aug 2009 01:02:03 -0400 Subject: [PATCH] Keep it simple. --- mojoshader_parser_hlsl.lemon | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mojoshader_parser_hlsl.lemon b/mojoshader_parser_hlsl.lemon index d68d4afc..451dc21b 100644 --- a/mojoshader_parser_hlsl.lemon +++ b/mojoshader_parser_hlsl.lemon @@ -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.