saving progress on functions and variables

This commit is contained in:
Samuel D. Crow
2021-03-15 14:04:53 -05:00
parent 4b2b567a42
commit 4eb08efc9d
4 changed files with 280 additions and 116 deletions

View File

@@ -11,7 +11,6 @@
/* base class of all the code structure types */
codeType::codeType(enum CODES t)
{
this->id= ++nextID;
nesting.push_back(this);
this->type=t;
}
@@ -48,7 +47,7 @@ void label::generateJumpTo()
output_cpp << "state=" << this->getID() << ";\nbreak;\n";
}
void label::generateOnNSkip(list<label *> &dest)
void label::generateOnNSkip(list<shared_ptr<label> >dest)
{
if (dest->size()<2)
{