mojoshader_parser_hlsl.lemon
changeset 795 5a6c79a74662
parent 790 0cf8abbbc9fa
child 796 ab5e4797e0cb
equal deleted inserted replaced
794:55bd6ae8be53 795:5a6c79a74662
   484 switch_case ::= CASE expression COLON.
   484 switch_case ::= CASE expression COLON.
   485 switch_case ::= DEFAULT COLON statement_list.
   485 switch_case ::= DEFAULT COLON statement_list.
   486 switch_case ::= DEFAULT COLON.
   486 switch_case ::= DEFAULT COLON.
   487 
   487 
   488 %type identifier { TokenData }
   488 %type identifier { TokenData }
       
   489 %destructor identifier { (void) ctx; }  // !!! FIXME: remove this later, it's just to shut up the compiler for now.
   489 identifier(A) ::= IDENTIFIER(B).
   490 identifier(A) ::= IDENTIFIER(B).
   490 {
   491 {
   491     A.token = B.token;
   492     A.token = B.token;
   492     A.tokenlen = B.tokenlen;
   493     A.tokenlen = B.tokenlen;
   493 }
   494 }