diff options
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | JSImpl/src/main.cpp | 4 |
diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp index 3fe6f99..0d78a10 100644 --- a/JSImpl/src/main.cpp +++ b/JSImpl/src/main.cpp @@ -8,7 +8,7 @@ void RunParseCalc() { IPLVector<Token> tokens; //Tokenize("var a = 0; var b = a + 123;a+b;", tokens); - Tokenize("var s = 0; for (var i = 0; i < 10; ++i + --s) { s };", tokens); + Tokenize("var a = 5; if(a == 5){a++;}", tokens); // TODO make actual test :D auto expr = Parse(tokens); @@ -22,7 +22,7 @@ void RunParseCalc() std::cout << result.back() << std::endl; result.pop_back(); } - std::cout << "S = " << i.ModifyVariable("s") << std::endl; + std::cout << "S = " << i.ModifyVariable("a") << std::endl; } int main() |
