From 582fa63db2488b5e3f020dc462dc40b51064b120 Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Mon, 9 Sep 2019 21:57:04 -0500 Subject: [PATCH] Update --- version0.16/code_generator.h | 6 +++--- version0.16/main.cpp | 6 +++--- version0.16/test.txt | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/version0.16/code_generator.h b/version0.16/code_generator.h index 0050787..f8d2fe9 100644 --- a/version0.16/code_generator.h +++ b/version0.16/code_generator.h @@ -70,7 +70,7 @@ class code_generator root.run(); return; } - void gen_ast() + bool gen_ast() { root.return_list().clear(); bool iserror=false; @@ -97,10 +97,10 @@ class code_generator temp_ast.pop(); } if(iserror) - return; + return iserror; std::cout<<">>[Parse] 0 error(s)."<>[Parse] Complete checking."<