summaryrefslogtreecommitdiff
path: root/src/token.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2016-12-01 09:51:06 -0700
committerMike Buland <eichlan@xagasoft.com>2016-12-01 09:51:06 -0700
commit4efeaef41e57b25d6004e7f91828f7d5b5cd0b20 (patch)
tree19986986ab7e4638547588094fcc19275cfe9ef3 /src/token.h
parent3015ea4677201060777435cf76815e898d221f8c (diff)
downloadclic-4efeaef41e57b25d6004e7f91828f7d5b5cd0b20.tar.gz
clic-4efeaef41e57b25d6004e7f91828f7d5b5cd0b20.tar.bz2
clic-4efeaef41e57b25d6004e7f91828f7d5b5cd0b20.tar.xz
clic-4efeaef41e57b25d6004e7f91828f7d5b5cd0b20.zip
Forgot assignment and negation. They both work now.
That was actually really cool. Now to clean up the debugging code and write the execution engine.
Diffstat (limited to '')
-rw-r--r--src/token.h48
1 files changed, 28 insertions, 20 deletions
diff --git a/src/token.h b/src/token.h
index 072a96b..4ad1136 100644
--- a/src/token.h
+++ b/src/token.h
@@ -13,26 +13,34 @@ class Token
13public: 13public:
14 enum Type 14 enum Type
15 { 15 {
16 tNumber, 16 tNumber = 0x1001,
17 tVariable, 17 tVariable = 0x2002,
18 tCommand, 18 tCommand = 0x2003,
19 tPlus, 19 tPlus = 0x4004,
20 tMinus, 20 tMinus = 0x4005,
21 tDivide, 21 tDivide = 0x4006,
22 tMultiply, 22 tMultiply = 0x4007,
23 tModulus, 23 tModulus = 0x4008,
24 tOpenParen, 24 tOpenParen = 0x8009,
25 tCloseParen, 25 tCloseParen = 0x800a,
26 tEquals, 26 tEquals = 0x400b,
27 tString, 27 tString = 0x200c,
28 28
29 tNegate, 29 tNegate = 0x800d,
30 tEndOfLine, 30 tEndOfLine = 0x010e,
31 31
32 tEndOfInput, 32 tEndOfInput = 0x010f,
33 33
34 tUninitialized, 34 tUninitialized = 0x0110,
35 tComputedValue 35 tComputedValue = 0x0111,
36
37
38 mMetaNumber = 0x1000,
39 mMetaString = 0x2000,
40 mMetaOperator = 0x4000,
41 mMetaAltOp = 0x8000,
42 mMetaMeta = 0x0100,
43
36 }; 44 };
37 45
38 Token(); 46 Token();