public override String VisitTerm([NotNull] mathParser.TermContext context) { try { var b = (context.GetChild(0).GetChild(0).ChildCount >= 1); return(VisitChildren(context)); } catch (Exception e) { expression = expression + context.GetChild(0).GetText(); return(expression); } }
/// <summary> /// Visit a parse tree produced by <see cref="mathParser.term"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitTerm([NotNull] mathParser.TermContext context) { return(VisitChildren(context)); }