fixed bug in nasal_parse

This commit is contained in:
Li Haokun
2021-07-21 17:38:11 +08:00
committed by GitHub
parent 884b56ac09
commit 9ebabfe737
7 changed files with 27 additions and 34 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ void nasal_lexer::scanner()
void nasal_lexer::print_token()
{
for(auto tok:token_list)
for(auto& tok:token_list)
std::cout<<"("<<tok.line<<" | "<<tok.str<<")\n";
return;
}