Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / main.cpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--JSImpl/src/main.cpp4
diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp
index b2fb83d..c15458e 100644
--- a/JSImpl/src/main.cpp
+++ b/JSImpl/src/main.cpp
@@ -67,8 +67,8 @@ void Generate()
{
IPLVector<Token> tokens;
//Tokenize("var a = 0; var b = a + 123;a+b;", tokens);
- Tokenize("var a; if(a < 4) { a = 8;} else { a = 2} ", tokens);
-
+ /*Tokenize("var a; if(a < 4) { a = 8; if(a < 7) {var b = 4;}} else { a = 2} ", tokens);*/
+ Tokenize("var i = 0; for (var j = 0; j < 10; j = j + 1) { i = i + j; }", tokens);
std::cout << GenerateByteCode(Parse(tokens));
}