public override Node VisitAtom([NotNull] FormulaGrammerParser.AtomContext context)
        {
            var expression = context.expression();

            if (expression != null)
            {
                if (this.configuration.IsBracketSupportDisabled)
                {
                    ParsingException.ThrowInvalidTokenException(context.LPAREN().Symbol);
                }

                return(new BracketedNode(this.VisitExpression(expression)));
            }

            return(base.VisitAtom(context));
        }
 /// <summary>
 /// Visit a parse tree produced by <see cref="FormulaGrammerParser.atom"/>.
 /// <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 VisitAtom([NotNull] FormulaGrammerParser.AtomContext context)
 {
     return(VisitChildren(context));
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="FormulaGrammerParser.atom"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitAtom([NotNull] FormulaGrammerParser.AtomContext context)
 {
 }