Skip to content
Snippets Groups Projects
Commit 461d6c80 authored by BAUQUIN Niels's avatar BAUQUIN Niels
Browse files

geg

parent 58777e49
No related branches found
No related tags found
No related merge requests found
......@@ -62,12 +62,7 @@ public class Sc2sa extends DepthFirstAdapter
@Override
public void caseAExp1Exp(AExp1Exp node) {
SaExp op = null;
inAExp1Exp(node);
node.getExp1().apply(this);
op = (SaExp) this.returnValue;
this.returnValue = new SaExp(op);
outAExp1Exp(node);
}
@Override
......@@ -85,12 +80,7 @@ public class Sc2sa extends DepthFirstAdapter
@Override
public void caseAExp2Exp1(AExp2Exp1 node) {
SaExp op = null;
inAExp2Exp1(node);
node.getExp2().apply(this);
op = (SaExp) this.returnValue;
this.returnValue = new SaExp(op);
outAExp2Exp1(node);
}
@Override
......@@ -121,12 +111,7 @@ public class Sc2sa extends DepthFirstAdapter
@Override
public void caseAExp3Exp2(AExp3Exp2 node) {
SaExp op = null;
inAExp3Exp2(node);
node.getExp3().apply(this);
op = (SaExp) this.returnValue;
this.returnValue = new SaExp(op);
outAExp3Exp2(node);
}
@Override
......@@ -158,12 +143,7 @@ public class Sc2sa extends DepthFirstAdapter
@Override
public void caseAExp4Exp3(AExp4Exp3 node) {
SaExp op = null;
inAExp4Exp3(node);
node.getExp4().apply(this);
op = (SaExp) this.returnValue;
this.returnValue = new SaExp(op);
outAExp4Exp3(node);
}
@Override
......@@ -194,12 +174,7 @@ public class Sc2sa extends DepthFirstAdapter
@Override
public void caseAExp5Exp4(AExp5Exp4 node) {
SaExp op = null;
inAExp5Exp4(node);
node.getExp5().apply(this);
op = (SaExp) this.returnValue;
this.returnValue = new SaExp(op);
outAExp5Exp4(node);
}
@Override
......@@ -214,12 +189,7 @@ public class Sc2sa extends DepthFirstAdapter
@Override
public void caseAExp6Exp5(AExp6Exp5 node) {
SaExp op = null;
inAExp6Exp5(node);
node.getExp6().apply(this);
op = (SaExp) this.returnValue;
this.returnValue = new SaExp(op);
outAExp6Exp5(node);
}
@Override
......@@ -240,11 +210,10 @@ public class Sc2sa extends DepthFirstAdapter
@Override
public void caseANombreExp6(ANombreExp6 node) {
SaExp op = null;
int entier = 0;
inANombreExp6(node);
node.getNombre().apply(this);
op = (SaExp) this.returnValue;
this.returnValue = new SaExp(op);
entier = Integer.parseInt(node.getNombre().getText());
this.returnValue = new SaExpInt(entier);
outANombreExp6(node);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment