/// <summary> /// Enter a parse tree produced by <see cref="calculatorParser.divZeroAtom"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void EnterDivZeroAtom([NotNull] calculatorParser.DivZeroAtomContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="calculatorParser.divZeroAtom"/>. /// <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 VisitDivZeroAtom([NotNull] calculatorParser.DivZeroAtomContext context) { return(VisitChildren(context)); }
public override Value VisitDivZeroAtom(calculatorParser.DivZeroAtomContext context) { //Will need to think of a better way to handle this case; a string populating cell intended to be double return(new Value(0.00000001)); }