This commit is contained in:
Valk Richard Li
2020-11-11 15:04:52 +08:00
parent 08b1df14b8
commit 7563bf7c60
2 changed files with 59 additions and 103 deletions
-2
View File
@@ -106,7 +106,6 @@ std::string ast_str(int type)
enum parse_error
{
unknown,
error_token,
error_expr,
lack_left_curve,
@@ -143,7 +142,6 @@ void error_info(int line,int error_type,std::string error_str="")
std::cout<<">> [parse] line "<<line<<": ";
switch(error_type)
{
case unknown: std::cout<<"unknown error.\n"; break;
case error_token: std::cout<<"error token \""+error_str+"\".\n"; break;
case error_expr: std::cout<<"error expression \""+error_str+"\".\n"; break;
case lack_left_curve: std::cout<<"expected \"(\".\n"; break;