diff --git a/version1.2/ast.h b/version1.2/ast.h index e0832e6..84fa126 100644 --- a/version1.2/ast.h +++ b/version1.2/ast.h @@ -34,6 +34,7 @@ class abstract_syntax_tree var_number=p.var_number; var_string=p.var_string; var_name=p.var_name; + children.clear(); children=p.children; return *this; } @@ -53,6 +54,15 @@ class abstract_syntax_tree str+="| "; std::cout<>[Error] line "<>[Error] line "<>[Error] line "<>[Error] line "<