diff dmeval.h @ 766:11fba703014f

Some more work. Still broken.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 May 2013 19:15:59 +0300
parents c68258fd81a1
children
line wrap: on
line diff
--- a/dmeval.h	Thu May 09 08:38:52 2013 +0300
+++ b/dmeval.h	Thu May 09 19:15:59 2013 +0300
@@ -28,10 +28,10 @@
     OP_BIT_OR,
     OP_BIT_XOR,
 
+    OP_GT_EQ,
+    OP_LT_EQ,
     OP_GT,
     OP_LT,
-    OP_GT_EQ,
-    OP_LT_EQ,
 
     // Special ops
     OP_FUNC,
@@ -53,13 +53,14 @@
     OT_LEFT,      // Left-associative
     OT_RIGHT,     // Right-associative
     OT_UNARY,
-} DMEvalOperType;
+} DMEvalOperAssoc;
 
 
 typedef struct
 {
-    char *name;
-    int type;
+    char *name;     // Token
+    int   assoc;    // Associativity type (DMEvalOperAssoc)
+    BOOL  tokenize; // Automatically tokenize?
 } DMEvalOper;