This commit is contained in:
Valk Richard Li
2020-01-23 17:35:53 +08:00
committed by GitHub
parent 34688c2ca9
commit 47496b3e34
5 changed files with 109 additions and 36 deletions
+7
View File
@@ -154,6 +154,13 @@ struct token
int line;
int type;
std::string str;
token& operator=(const token& tmp)
{
line=tmp.line;
type=tmp.type;
str=tmp.str;
return *this;
}
};
class nasal_lexer