public override Node VisitBody([NotNull] coolgrammarParser.BodyContext context)
        {
            List <Expr> list = new List <Expr>();

            foreach (var item in context.expr_list().expr())
            {
                var v = (Expr)Visit(item);
                list.Add(v);
            }
            return(new Body(new Lista <Expr>(list)));
        }
 /// <summary>
 /// Visit a parse tree produced by the <c>body</c>
 /// labeled alternative in <see cref="coolgrammarParser.expr"/>.
 /// <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 VisitBody([NotNull] coolgrammarParser.BodyContext context)
 {
     return(VisitChildren(context));
 }