Complete parser

This commit is contained in:
Valk Richard Li
2019-11-05 23:57:00 +08:00
committed by GitHub
parent 1a0cd3d62b
commit dfb81c925f
3 changed files with 463 additions and 105 deletions
+4
View File
@@ -67,6 +67,10 @@ int main()
{
pas.get_detail_token_stream(lex.get_detail_token());
pas.parse_main();
if(!pas.get_error())
pas.print_generated_tree();
else
std::cout<<">>[Parse] error(s) found,stop."<<std::endl;
}
else
std::cout<<">>[Lexer] error(s) found,stop."<<std::endl;