This commit is contained in:
Valk Richard Li
2020-01-21 17:35:50 +08:00
committed by GitHub
parent 7474930712
commit 4f6cf4ba6e
4 changed files with 230 additions and 62 deletions
+7
View File
@@ -185,6 +185,13 @@ class nasal_lexer
detail_token_list.clear();
return;
}
void delete_all_tokens()
{
token_list.clear();
detail_token_list.clear();
error=0;
return;
}
void print_token_list()
{
for(std::list<token>::iterator i=token_list.begin();i!=token_list.end();++i)