use of org.kie.dmn.feel.lang.ast.BaseNode in project drools by kiegroup.
the class ASTBuilderVisitor method visitCompExpression.
@Override
public BaseNode visitCompExpression(FEEL_1_1Parser.CompExpressionContext ctx) {
BaseNode left = visit(ctx.left);
BaseNode right = visit(ctx.right);
return ASTBuilderFactory.newInfixOpNode(ctx, left, ctx.op.getText(), right);
}
use of org.kie.dmn.feel.lang.ast.BaseNode in project drools by kiegroup.
the class ASTBuilderVisitor method visitRelExpressionTestList.
@Override
public BaseNode visitRelExpressionTestList(FEEL_1_1Parser.RelExpressionTestListContext ctx) {
BaseNode value = visit(ctx.val);
BaseNode list = visit(ctx.simpleUnaryTests());
return ASTBuilderFactory.newInNode(ctx, value, list);
}
use of org.kie.dmn.feel.lang.ast.BaseNode in project drools by kiegroup.
the class ASTBuilderVisitor method visitForExpression.
@Override
public BaseNode visitForExpression(FEEL_1_1Parser.ForExpressionContext ctx) {
ListNode list = (ListNode) visit(ctx.iterationContexts());
BaseNode expr = visit(ctx.expression());
return ASTBuilderFactory.newForExpression(ctx, list, expr);
}
use of org.kie.dmn.feel.lang.ast.BaseNode in project drools by kiegroup.
the class ASTBuilderVisitor method visitRelExpressionBetween.
@Override
public BaseNode visitRelExpressionBetween(FEEL_1_1Parser.RelExpressionBetweenContext ctx) {
BaseNode value = visit(ctx.val);
BaseNode start = visit(ctx.start);
BaseNode end = visit(ctx.end);
return ASTBuilderFactory.newBetweenNode(ctx, value, start, end);
}
use of org.kie.dmn.feel.lang.ast.BaseNode in project drools by kiegroup.
the class ASTBuilderVisitor method visitPositiveUnaryTestIneq.
@Override
public BaseNode visitPositiveUnaryTestIneq(FEEL_1_1Parser.PositiveUnaryTestIneqContext ctx) {
BaseNode value = visit(ctx.endpoint());
String op = ctx.op.getText();
return ASTBuilderFactory.newUnaryTestNode(ctx, op, value);
}
Aggregations