bug fixed & raw string print

This commit is contained in:
ValKmjolnir
2021-07-21 00:20:25 +08:00
parent 61677101e4
commit 884b56ac09
4 changed files with 43 additions and 12 deletions
+4 -1
View File
@@ -132,7 +132,10 @@ void nasal_ast::print_ast(int depth)
std::cout<<"| ";
std::cout<<ast_name[type];
if(type==ast_str || type==ast_id || type==ast_default_arg || type==ast_dynamic_id || type==ast_callh)
std::cout<<":"<<str;
{
std::cout<<":";
raw_string(str);
}
else if(type==ast_num || type==ast_file)
std::cout<<":"<<num;
std::cout<<'\n';