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