Example #1
0
 private double WalkN(LabCalculatorParser.ExpressionContext context, int idx)
 {
     try
     {
         return(Visit(context.GetRuleContext <LabCalculatorParser.ExpressionContext>(idx)));
     }
     catch (NullReferenceException) { return(1.0101); }
 }
Example #2
0
 private double WalkRight(LabCalculatorParser.ExpressionContext context)
 {
     return(Visit(context.GetRuleContext <LabCalculatorParser.ExpressionContext>(1)));
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="LabCalculatorParser.expression"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitExpression([NotNull] LabCalculatorParser.ExpressionContext context)
 {
 }