Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
MathPrettyPrinter
Commits
bf119697
Commit
bf119697
authored
Jun 28, 2018
by
0xJMR
Browse files
Added missing > node.
parent
cb92376b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/mpp/montimath/MathPrettyPrinter.java
View file @
bf119697
...
...
@@ -290,6 +290,13 @@ public class MathPrettyPrinter implements AstPrettyPrinter<ASTMathCompilationUni
this
.
printSpace
();
}
@Override
public
void
visit
(
ASTGreaterThanExpression
node
)
{
this
.
printSpace
();
this
.
printer
.
print
(
node
.
getOperator
());
this
.
printSpace
();
}
@Override
public
void
visit
(
ASTMathElseIfExpression
node
)
{
this
.
printElseIf
();
...
...
src/main/java/de/monticore/lang/monticar/mpp/montimath/MathStructuredVisitor.java
View file @
bf119697
...
...
@@ -325,6 +325,21 @@ public interface MathStructuredVisitor extends MathVisitor {
default
void
revisit
(
ASTGreaterEqualExpression
node
)
{}
@Override
default
void
traverse
(
ASTGreaterThanExpression
node
)
{
if
(
null
!=
node
.
getLeftExpression
())
{
node
.
getLeftExpression
().
accept
(
this
.
getRealThis
());
this
.
getRealThis
().
revisit
(
node
);
}
if
(
null
!=
node
.
getRightExpression
())
{
node
.
getRightExpression
().
accept
(
this
.
getRealThis
());
}
}
default
void
revisit
(
ASTGreaterThanExpression
node
)
{}
@Override
default
void
traverse
(
ASTBooleanOrOpExpression
node
)
{
if
(
null
!=
node
.
getLeftExpression
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment