public static OpBuilder GetOpBuilder(Type type, ParserRuleContext ctx, IlBuilder builder) { if (type == typeof(bool)) { return(new BooleanOpBuilder(ctx, builder)); } else if (type == typeof(string)) { return(new StringOpBuilder(ctx, builder)); } else if (type == typeof(decimal)) { return(new DecimalOpBuilder(ctx, builder)); } throw ctx.Exception("Unspported operation."); }
public DecimalOpBuilder(ParserRuleContext ctx, IlBuilder builder) : base(ctx, builder) { }
public StringOpBuilder(ParserRuleContext ctx, IlBuilder builder) : base(ctx, builder) { }
public OpBuilder(ParserRuleContext ctx, IlBuilder builder) { Ctx = ctx; Il = builder; }
public BooleanOpBuilder(ParserRuleContext ctx, IlBuilder builder) : base(ctx, builder) { }