public override string VisitBooleanOp([NotNull] WordLangParser.BooleanOpContext context) { var op = Visit(context.booleanOpMain()); op += (context.NEGATION() == null ? "" : "!"); return(Quotize(op)); }
public override string VisitBooleanOp([NotNull] WordLangParser.BooleanOpContext context) { var neg = context.NEGATION() != null; var op = ""; if (context.booleanOpMain() != null) { op += Visit(context.booleanOpMain()); } var result = (neg ? "!" : "") + op; //var other = context.booleanOp(); //if (other != null) //{ // result += Visit(other); //} return(result); }