Commit cb92376b authored by 0xJMR's avatar 0xJMR
Browse files

Added missing <= node.

parent 3e7cb904
......@@ -283,6 +283,13 @@ public class MathPrettyPrinter implements AstPrettyPrinter<ASTMathCompilationUni
this.printSpace();
}
@Override
public void visit(ASTLessEqualExpression node) {
this.printSpace();
this.printer.print(node.getOperator());
this.printSpace();
}
@Override
public void visit(ASTMathElseIfExpression node) {
this.printElseIf();
......
......@@ -112,6 +112,26 @@ public interface MathStructuredVisitor extends MathVisitor {
}
}
@Override
default void handle(ASTLessEqualExpression node) {
this.getRealThis().traversePartOne(node);
this.getRealThis().visit(node);
this.getRealThis().traversePartTwo(node);
this.getRealThis().endVisit(node);
}
default void traversePartOne(ASTLessEqualExpression node) {
if (null != node.getLeftExpression()) {
node.getLeftExpression().accept(this.getRealThis());
}
}
default void traversePartTwo(ASTLessEqualExpression node) {
if (null != node.getRightExpression()) {
node.getRightExpression().accept(this.getRealThis());
}
}
@Override
default void handle(ASTMultExpression node) {
this.getRealThis().traversePartOne(node);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment