changed NUM to val
authorjordan@hack_attack <jordanlavatai@gmail.com>
Thu, 22 Sep 2016 19:41:54 +0000 (12:41 -0700)
committerjordan@hack_attack <jordanlavatai@gmail.com>
Thu, 22 Sep 2016 19:41:54 +0000 (12:41 -0700)
src/apc/lexer.c
src/apc/parser.y

index c092e5e..67aeb23 100644 (file)
@@ -110,11 +110,11 @@ int lexer
 { if (TK_EMPTY)
     { TK_INIT();
       if (scanner() == 0)
-        { yylval.NUM = 0;
+        { yylval.val = 0;
           return 0;
         }
     }
-  yylval.NUM = TK_POPI();
+  yylval.val = TK_POPI();
   return TK_POPI();
 }
 
index 07bc28b..64bed5a 100644 (file)
@@ -21,7 +21,7 @@
 
 %union {
   uint64_t ref;
-  int NUM;
+  int val;
   char *str;
   void *voidp;
 
 %type <ref> ele_svlink
 %type <ref> set_svlink
 //terminals
-%token <NUM> NUM
+%token <val> NUM
 %token <str> STR
-%token <NUM> SS
+%token <val> SS
 %token <str> NAME
 %token <ref> REF
-%token <NUM> SSD
+%token <val> SSD
 %token <voidp> FPTR
-%token <NUM> WIDTH
-%token <NUM> HEIGHT
-%token <NUM> NUM_PTRS
+%token <val> WIDTH
+%token <val> HEIGHT
+%token <val> NUM_PTRS
 //precedence
 %precedence LP
 %precedence MP