Added new tokens to debug output.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 12 Feb 2009 17:12:46 -0500
changeset 586 321a19a62989
parent 585 4713a5b31391
child 587 202354e004fc
Added new tokens to debug output.
mojoshader_assembler.c
mojoshader_preprocessor.c
--- a/mojoshader_assembler.c	Thu Feb 12 17:10:04 2009 -0500
+++ b/mojoshader_assembler.c	Thu Feb 12 17:12:46 2009 -0500
@@ -248,7 +248,16 @@
         TOKENCASE(TOKEN_INT_LITERAL);
         TOKENCASE(TOKEN_FLOAT_LITERAL);
         TOKENCASE(TOKEN_STRING_LITERAL);
-        TOKENCASE(TOKEN_ELLIPSIS);
+        TOKENCASE(TOKEN_ADDASSIGN);
+        TOKENCASE(TOKEN_SUBASSIGN);
+        TOKENCASE(TOKEN_MULTASSIGN);
+        TOKENCASE(TOKEN_DIVASSIGN);
+        TOKENCASE(TOKEN_MODASSIGN);
+        TOKENCASE(TOKEN_XORASSIGN);
+        TOKENCASE(TOKEN_ANDASSIGN);
+        TOKENCASE(TOKEN_ORASSIGN);
+        TOKENCASE(TOKEN_INCREMENT);
+        TOKENCASE(TOKEN_DECREMENT);
         TOKENCASE(TOKEN_RSHIFT);
         TOKENCASE(TOKEN_LSHIFT);
         TOKENCASE(TOKEN_ANDAND);
--- a/mojoshader_preprocessor.c	Thu Feb 12 17:10:04 2009 -0500
+++ b/mojoshader_preprocessor.c	Thu Feb 12 17:12:46 2009 -0500
@@ -392,7 +392,18 @@
         TOKENCASE(TOKEN_INT_LITERAL);
         TOKENCASE(TOKEN_FLOAT_LITERAL);
         TOKENCASE(TOKEN_STRING_LITERAL);
-        TOKENCASE(TOKEN_ELLIPSIS);
+        TOKENCASE(TOKEN_RSHIFTASSIGN);
+        TOKENCASE(TOKEN_LSHIFTASSIGN);
+        TOKENCASE(TOKEN_ADDASSIGN);
+        TOKENCASE(TOKEN_SUBASSIGN);
+        TOKENCASE(TOKEN_MULTASSIGN);
+        TOKENCASE(TOKEN_DIVASSIGN);
+        TOKENCASE(TOKEN_MODASSIGN);
+        TOKENCASE(TOKEN_XORASSIGN);
+        TOKENCASE(TOKEN_ANDASSIGN);
+        TOKENCASE(TOKEN_ORASSIGN);
+        TOKENCASE(TOKEN_INCREMENT);
+        TOKENCASE(TOKEN_DECREMENT);
         TOKENCASE(TOKEN_RSHIFT);
         TOKENCASE(TOKEN_LSHIFT);
         TOKENCASE(TOKEN_ANDAND);