mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-23 03:18:43 +08:00
update
This commit is contained in:
@@ -104,7 +104,7 @@ void abstract_syntax_tree::print_tree_block(const int n)
|
|||||||
{
|
{
|
||||||
std::string __str="";
|
std::string __str="";
|
||||||
for(int i=0;i<n;++i)
|
for(int i=0;i<n;++i)
|
||||||
__str+="| ";
|
__str+="| ";
|
||||||
std::cout<<__str;
|
std::cout<<__str;
|
||||||
print_ast_type(node_type);
|
print_ast_type(node_type);
|
||||||
switch(node_type)
|
switch(node_type)
|
||||||
@@ -752,4 +752,4 @@ ast:
|
|||||||
id: i
|
id: i
|
||||||
return
|
return
|
||||||
num: 0
|
num: 0
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -433,7 +433,7 @@ class nasal_lexer
|
|||||||
++ptr;
|
++ptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::cout<<">> [Pre-lexer] complete scanning. "<<error<<" error(s)."<<std::endl;
|
std::cout<<">> [Lexer] complete scanning. "<<error<<" error(s)."<<std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
void generate_detail_token()
|
void generate_detail_token()
|
||||||
@@ -541,7 +541,7 @@ class nasal_lexer
|
|||||||
detail_token_list.push_back(detail_token);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
int get_error()
|
int get_error()
|
||||||
|
|||||||
Reference in New Issue
Block a user