Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2024_compilation_bauquin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BAUQUIN Niels
2024_compilation_bauquin
Commits
461d6c80
Commit
461d6c80
authored
1 year ago
by
BAUQUIN Niels
Browse files
Options
Downloads
Patches
Plain Diff
geg
parent
58777e49
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sa/Sc2sa.java
+3
-34
3 additions, 34 deletions
src/sa/Sc2sa.java
with
3 additions
and
34 deletions
src/sa/Sc2sa.java
+
3
−
34
View file @
461d6c80
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment