Skip to content
Permalink
Browse files
Updated lexer for HLSL.
Added some operators, and I'm pretty sure TOKEN_ELLIPSIS isn't used in
 the D3D preprocessor or HLSL.
  • Loading branch information
icculus committed Feb 12, 2009
1 parent 44b8bb4 commit 47f0003553b052f804a984bdbaea0fba573b71b8
Showing with 576 additions and 494 deletions.
  1. +12 −1 mojoshader_internal.h
  2. +552 −492 mojoshader_lexer.c
  3. +12 −1 mojoshader_lexer.re
@@ -286,7 +286,18 @@ typedef enum
TOKEN_INT_LITERAL,
TOKEN_FLOAT_LITERAL,
TOKEN_STRING_LITERAL,
TOKEN_ELLIPSIS,
TOKEN_RSHIFTASSIGN,
TOKEN_LSHIFTASSIGN,
TOKEN_ADDASSIGN,
TOKEN_SUBASSIGN,
TOKEN_MULTASSIGN,
TOKEN_DIVASSIGN,
TOKEN_MODASSIGN,
TOKEN_XORASSIGN,
TOKEN_ANDASSIGN,
TOKEN_ORASSIGN,
TOKEN_INCREMENT,
TOKEN_DECREMENT,
TOKEN_RSHIFT,
TOKEN_LSHIFT,
TOKEN_ANDAND,

0 comments on commit 47f0003

Please sign in to comment.