forked from xxq250/Nasal-Interpreter
update
This commit is contained in:
@@ -104,7 +104,7 @@ void abstract_syntax_tree::print_tree_block(const int n)
|
||||
{
|
||||
std::string __str="";
|
||||
for(int i=0;i<n;++i)
|
||||
__str+="| ";
|
||||
__str+="| ";
|
||||
std::cout<<__str;
|
||||
print_ast_type(node_type);
|
||||
switch(node_type)
|
||||
@@ -752,4 +752,4 @@ ast:
|
||||
id: i
|
||||
return
|
||||
num: 0
|
||||
*/
|
||||
*/
|
||||
|
||||
@@ -433,7 +433,7 @@ class nasal_lexer
|
||||
++ptr;
|
||||
}
|
||||
}
|
||||
std::cout<<">> [Pre-lexer] complete scanning. "<<error<<" error(s)."<<std::endl;
|
||||
std::cout<<">> [Lexer] complete scanning. "<<error<<" error(s)."<<std::endl;
|
||||
return;
|
||||
}
|
||||
void generate_detail_token()
|
||||
@@ -541,7 +541,7 @@ class nasal_lexer
|
||||
detail_token_list.push_back(detail_token);
|
||||
}
|
||||
}
|
||||
std::cout<<">> [Detail-lexer] complete generating. "<<error<<" error(s)."<<std::endl;
|
||||
std::cout<<">> [Lexer] complete generating. "<<error<<" error(s)."<<std::endl;
|
||||
return;
|
||||
}
|
||||
int get_error()
|
||||
|
||||
Reference in New Issue
Block a user