public override string VisitBooleanOpMain([NotNull] WordLangParser.BooleanOpMainContext context) { if (context.EQUALTO() != null || context.IS() != null) { return("="); } else if (context.GREATERTHAN() != null) { return(">"); } else if (context.LESSTHAN() != null) { return("<"); } else { return("?"); } }
public override string VisitBooleanOpMain([NotNull] WordLangParser.BooleanOpMainContext context) { var eq = context.EQUALTO(); if (eq != null) { return("="); } var lt = context.LESSTHAN(); if (lt != null) { return("<"); } var gt = context.GREATERTHAN(); if (gt != null) { return(">"); } throw new InvalidOperationException("Unrecognized boolean main operation." + context.GetText()); }