made a few tweaks and regenerated the Makefile to get it to link but it still won't

This commit is contained in:
Samuel D. Crow
2021-03-18 16:18:54 -05:00
parent b6e8984e62
commit 68c4806a3d
5 changed files with 35 additions and 46 deletions

View File

@@ -50,11 +50,7 @@ void label::generateJumpTo()
/* pass this as second parameter to generateOnNTo or generateOnNSub */
unsigned int label::generateOnNSkip(list<shared_ptr<label> >&dest)
{
if (dest.size()<2)
{
errorLevel=E_BAD_SYNTAX;
exit(1);
}
if (dest.size()<2)error(E_BAD_SYNTAX);
auto iter=dest.begin();
consts_h << "j" << this->getID() << "[]={" << *iter;
++iter;
@@ -130,12 +126,8 @@ void ifStatement::alternative(shared_ptr<expression>e)
void ifStatement::close()
{
if(this->chain)
{
/* elsif ended without else in between */
errorLevel=E_BAD_SYNTAX;
exit(1);
}
/* elsif ended without else in between */
if(this->chain)error(E_BAD_SYNTAX);
this->done->generate();
}