diff options
author | Mike Buland <eichlan@xagasoft.com> | 2016-12-13 12:46:09 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2016-12-13 12:46:09 -0700 |
commit | 7e0edb6c2db17c87415fbd041ef7add9dfb467e5 (patch) | |
tree | 2feddf5d1dde80d97b2eefdd299cbebc0d2e30d4 /src/token.h | |
parent | 5d59aa3e9dffe2912215335ce0b76c67ebbe5a4e (diff) | |
download | clic-7e0edb6c2db17c87415fbd041ef7add9dfb467e5.tar.gz clic-7e0edb6c2db17c87415fbd041ef7add9dfb467e5.tar.bz2 clic-7e0edb6c2db17c87415fbd041ef7add9dfb467e5.tar.xz clic-7e0edb6c2db17c87415fbd041ef7add9dfb467e5.zip |
Corrected negation and single value parse bugs.
Discovered arithmetic bug in the Number class, -4 + 5 is coming back as -1, not 1. It's getting the sign wrong somehow. I'll have to hunt that down.
Diffstat (limited to 'src/token.h')
-rw-r--r-- | src/token.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/token.h b/src/token.h index 5bede41..4d738ec 100644 --- a/src/token.h +++ b/src/token.h | |||
@@ -15,7 +15,7 @@ public: | |||
15 | { | 15 | { |
16 | tNumber = 0x1001, | 16 | tNumber = 0x1001, |
17 | tVariable = 0x2002, | 17 | tVariable = 0x2002, |
18 | tCommand = 0x2003, | 18 | //tCommand = 0x2003, |
19 | tPlus = 0x4004, | 19 | tPlus = 0x4004, |
20 | tMinus = 0x4005, | 20 | tMinus = 0x4005, |
21 | tDivide = 0x4006, | 21 | tDivide = 0x4006, |
@@ -34,12 +34,20 @@ public: | |||
34 | tUninitialized = 0x0110, | 34 | tUninitialized = 0x0110, |
35 | tComputedValue = 0x0111, | 35 | tComputedValue = 0x0111, |
36 | 36 | ||
37 | tCmdExit = 0x0201, | ||
38 | tCmdScale = 0x0202, | ||
39 | tCmdRadix = 0x0203, | ||
40 | tCmdExtended = 0x02f0, | ||
41 | tCmdParam = 0x02f1, | ||
42 | tCmdEndParams = 0x02f2, | ||
43 | |||
37 | 44 | ||
38 | mMetaNumber = 0x1000, | 45 | mMetaNumber = 0x1000, |
39 | mMetaString = 0x2000, | 46 | mMetaString = 0x2000, |
40 | mMetaOperator = 0x4000, | 47 | mMetaOperator = 0x4000, |
41 | mMetaAltOp = 0x8000, | 48 | mMetaAltOp = 0x8000, |
42 | mMetaMeta = 0x0100, | 49 | mMetaMeta = 0x0100, |
50 | mMetaCmd = 0x0200 | ||
43 | }; | 51 | }; |
44 | 52 | ||
45 | Token(); | 53 | Token(); |