diff options
author | Mike Buland <eichlan@xagasoft.com> | 2016-12-01 11:16:25 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2016-12-01 11:16:25 -0700 |
commit | 32b48aeb75db4ad40fe0173614e585f9bee72257 (patch) | |
tree | 36ec0bbb72ece290ba82906edf3ae6c50f2a0984 /src/parser.h | |
parent | b96daa4e9849ac9caf5c0dfcea8daac28267ea19 (diff) | |
download | clic-32b48aeb75db4ad40fe0173614e585f9bee72257.tar.gz clic-32b48aeb75db4ad40fe0173614e585f9bee72257.tar.bz2 clic-32b48aeb75db4ad40fe0173614e585f9bee72257.tar.xz clic-32b48aeb75db4ad40fe0173614e585f9bee72257.zip |
Found a big problem with order of operations.
I believe this is because I'm using right tail recursion, but I'm not really
sure how I could change it for this program.
order of operations is being observed perfectly, but then operations are being
performed from right to left, not left to right. I think I may be reducing
too frequently, honestly.
Diffstat (limited to '')
-rw-r--r-- | src/parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h index 1e0d1c4..60dd8e1 100644 --- a/src/parser.h +++ b/src/parser.h | |||
@@ -55,6 +55,7 @@ private: | |||
55 | void expr(); | 55 | void expr(); |
56 | void exprP(); | 56 | void exprP(); |
57 | void exprR(); | 57 | void exprR(); |
58 | void statement(); | ||
58 | 59 | ||
59 | private: | 60 | private: |
60 | void shift( const Token &t ); | 61 | void shift( const Token &t ); |