public override decimal VisitOperande([NotNull] InvertedPolishCalculatorParser.OperandeContext context) { if (context.negative() != null) { return(VisitNegative(context.negative())); } return(VisitNumber(context.number())); }
/// <summary> /// Enter a parse tree produced by <see cref="InvertedPolishCalculatorParser.operande"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void EnterOperande([NotNull] InvertedPolishCalculatorParser.OperandeContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="InvertedPolishCalculatorParser.operande"/>. /// <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 VisitOperande([NotNull] InvertedPolishCalculatorParser.OperandeContext context) { return(VisitChildren(context)); }