use of org.apache.sysml.parser.BooleanExpression in project incubator-systemml by apache.
the class CommonSyntacticValidator method booleanExpressionHelper.
protected void booleanExpressionHelper(ParserRuleContext ctx, ExpressionInfo left, ExpressionInfo right, ExpressionInfo me, String op) {
if (left.expr != null && right.expr != null) {
Expression.BooleanOp bop = Expression.getBooleanOp(op);
BooleanExpression re = new BooleanExpression(bop);
re.setLeft(left.expr);
re.setRight(right.expr);
me.expr = re;
setFileLineColumn(me.expr, ctx);
}
}
use of org.apache.sysml.parser.BooleanExpression in project incubator-systemml by apache.
the class CommonSyntacticValidator method unaryBooleanExpressionHelper.
protected void unaryBooleanExpressionHelper(ParserRuleContext ctx, ExpressionInfo left, ExpressionInfo me, String op) {
if (left.expr != null) {
Expression.BooleanOp bop = Expression.getBooleanOp(op);
BooleanExpression be = new BooleanExpression(bop);
be.setLeft(left.expr);
me.expr = be;
setFileLineColumn(me.expr, ctx);
}
}
use of org.apache.sysml.parser.BooleanExpression in project systemml by apache.
the class CommonSyntacticValidator method unaryBooleanExpressionHelper.
protected void unaryBooleanExpressionHelper(ParserRuleContext ctx, ExpressionInfo left, ExpressionInfo me, String op) {
if (left.expr != null) {
Expression.BooleanOp bop = Expression.getBooleanOp(op);
BooleanExpression be = new BooleanExpression(bop);
be.setLeft(left.expr);
me.expr = be;
setFileLineColumn(me.expr, ctx);
}
}
use of org.apache.sysml.parser.BooleanExpression in project systemml by apache.
the class CommonSyntacticValidator method booleanExpressionHelper.
protected void booleanExpressionHelper(ParserRuleContext ctx, ExpressionInfo left, ExpressionInfo right, ExpressionInfo me, String op) {
if (left.expr != null && right.expr != null) {
Expression.BooleanOp bop = Expression.getBooleanOp(op);
BooleanExpression re = new BooleanExpression(bop);
re.setLeft(left.expr);
re.setRight(right.expr);
me.expr = re;
setFileLineColumn(me.expr, ctx);
}
}
Aggregations