This commit is contained in:
Valk Richard Li
2020-06-10 02:07:36 -07:00
committed by GitHub
parent 2f9e3c5e30
commit 3c2a1d83cc
5 changed files with 141 additions and 16 deletions
+10
View File
@@ -12,6 +12,7 @@ public:
nasal_ast();
nasal_ast(const nasal_ast&);
~nasal_ast();
nasal_ast& operator=(const nasal_ast&);
void clear();
void set_line(int);
void set_type(int);
@@ -47,6 +48,15 @@ nasal_ast::~nasal_ast()
return;
}
nasal_ast& nasal_ast::operator=(const nasal_ast& tmp)
{
this->line=tmp.line;
this->type=tmp.type;
this->str=tmp.str;
this->children=tmp.children;
return *this;
}
void nasal_ast::clear()
{
this->line=0;