This commit is contained in:
Valk Richard Li
2019-09-09 21:57:04 -05:00
committed by GitHub
parent c9e8d10de9
commit d06b2c2526
3 changed files with 8 additions and 6 deletions
+3 -3
View File
@@ -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)."<<std::endl;
std::cout<<">>[Parse] Complete checking."<<std::endl;
return;
return false;
}
};