From 9b0c6501113169cacc6a6c4ca996959e4586e304 Mon Sep 17 00:00:00 2001 From: martin dobrev Date: Fri, 21 Sep 2018 09:21:29 +0300 Subject: Implement TopStatement and Program rules. --- JSImpl/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'JSImpl/src/main.cpp') diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp index d412050..e2fc448 100644 --- a/JSImpl/src/main.cpp +++ b/JSImpl/src/main.cpp @@ -77,7 +77,7 @@ void TestVariableDeclaration() void TestParseUnaryExpr() { // TODO make actual test :D - auto expr = Parse(Tokenize("--10")); + auto expr = Parse(Tokenize("function pesho() { var a = 0; return a; }")); expr->Print(std::cout); } -- cgit v1.3.1-23-gd82d