From 32b48aeb75db4ad40fe0173614e585f9bee72257 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 1 Dec 2016 11:16:25 -0700 Subject: 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. --- src/parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser.h') 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: void expr(); void exprP(); void exprR(); + void statement(); private: void shift( const Token &t ); -- cgit v1.2.3