コード例 #1
0
 /// <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)
 {
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 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));
 }