From 2afce60a25b9d19b24c5420b8d6a049769e519bb Mon Sep 17 00:00:00 2001 From: omalinov Date: Wed, 24 Oct 2018 21:43:14 +0300 Subject: ASTParser proper intendation. (#16) --- JSImpl/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'JSImpl/src/main.cpp') diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp index dd54f38..a7d489c 100644 --- a/JSImpl/src/main.cpp +++ b/JSImpl/src/main.cpp @@ -191,12 +191,13 @@ void TestCommentError() void TestParseUnaryExpr() { IPLVector tokens; - Tokenize("function pesho() { var a = 0; return a; }", tokens); + Tokenize("function pesho() { var a = 0; return a; } var a = \"3\";", tokens); // TODO make actual test :D auto expr = Parse(tokens); ASTPrinter p(std::cout); expr->Accept(p); + std::cout << "\n"; } void RunParseCalc() @@ -258,7 +259,8 @@ int main() EXECUTE_TEST(TestScientificNotationNumber); //TestParseUnaryExpr(); - RunParseCalc(); + RunParseCalc(); + #if defined(_WIN32) std::system("pause"); #endif -- cgit v1.3.1-23-gd82d