From 17a39c19e5bff97c3b3d2bc888a3bb5ded7c1b96 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 1 Dec 2016 11:54:52 -0700 Subject: Terrible parsing issues are behind us now. At least...those issues are behind us. We'll see what happens next. Also, added some macros to make debugging easily optional. --- src/scriptengine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scriptengine.cpp') diff --git a/src/scriptengine.cpp b/src/scriptengine.cpp index b828409..65b6ec2 100644 --- a/src/scriptengine.cpp +++ b/src/scriptengine.cpp @@ -57,32 +57,32 @@ Number ScriptEngine::exec( Expression *pExpr ) case Token::tPlus: { - Number a = sNums.peekPop(); Number b = sNums.peekPop(); + Number a = sNums.peekPop(); sNums.push( a + b ); } break; case Token::tMinus: { - Number a = sNums.peekPop(); Number b = sNums.peekPop(); + Number a = sNums.peekPop(); sNums.push( a - b ); } break; case Token::tDivide: { - Number a = sNums.peekPop(); Number b = sNums.peekPop(); + Number a = sNums.peekPop(); sNums.push( a / b ); } break; case Token::tMultiply: { - Number a = sNums.peekPop(); Number b = sNums.peekPop(); + Number a = sNums.peekPop(); sNums.push( a * b ); } break; -- cgit v1.2.3