This commit is contained in:
Valk Richard Li
2020-07-14 01:30:27 -07:00
committed by GitHub
parent 6d3bccba0b
commit 15bc2feb6d
4 changed files with 235 additions and 47 deletions
+4 -3
View File
@@ -46,7 +46,7 @@ void lex_func()
if(!lexer.get_error())
lexer.print_token();
else
std::cout<<">> [lexer] error occurred,stop.\n";
std::cout<<">> [lexer] error(s) occurred,stop.\n";
return;
}
@@ -58,10 +58,10 @@ void par_func()
parse.set_toklist(lexer.get_token_list());
parse.main_process();
if(parse.get_error())
std::cout<<">> [parse] error occurred,stop.\n";
std::cout<<">> [parse] error(s) occurred,stop.\n";
}
else
std::cout<<">> [lexer] error occurred,stop.\n";
std::cout<<">> [lexer] error(s) occurred,stop.\n";
return;
}
@@ -70,6 +70,7 @@ int main()
#ifdef _WIN32
// use chcp 65001 to use unicode io
system("chcp 65001");
system("cls");
#endif
// this curve looks really cool
logo();