mojoshader_lexer.re
changeset 1147 ff14a55da268
parent 1142 7b554e065321
equal deleted inserted replaced
1146:31337471b909 1147:ff14a55da268
     8  */
     8  */
     9 
     9 
    10 // This was originally based on examples/pp-c.re from re2c: http://re2c.org/
    10 // This was originally based on examples/pp-c.re from re2c: http://re2c.org/
    11 //   re2c is public domain code.
    11 //   re2c is public domain code.
    12 //
    12 //
    13 // You build mojoshader_lexer_preprocessor.c from the .re file with re2c...
    13 // You build mojoshader_lexer.c from the .re file with re2c...
    14 // re2c -is -o mojoshader_lexer_preprocessor.c mojoshader_lexer_preprocessor.re
    14 // re2c -is -o mojoshader_lexer.c mojoshader_lexer.re
    15 //
    15 //
    16 // Changes to the lexer are done to the .re file, not the C code!
    16 // Changes to the lexer are done to the .re file, not the C code!
    17 //
    17 //
    18 // Please note that this isn't a perfect C lexer, since it is used for both
    18 // Please note that this isn't a perfect C lexer, since it is used for both
    19 //  HLSL and shader assembly language, and follows the quirks of Microsoft's
    19 //  HLSL and shader assembly language, and follows the quirks of Microsoft's
   270 
   270 
   271     assert(0 && "Shouldn't hit this code");
   271     assert(0 && "Shouldn't hit this code");
   272     RET(TOKEN_UNKNOWN);
   272     RET(TOKEN_UNKNOWN);
   273 } // preprocessor_lexer
   273 } // preprocessor_lexer
   274 
   274 
   275 // end of mojoshader_lexer_preprocessor.re (or .c) ...
   275 // end of mojoshader_lexer.re (or .c) ...
   276 
   276