Ejemplo n.º 1
0
        public override AST_Node VisitArgexpr([NotNull] CoolParser.ArgexprContext context)
        {
            var l = new List <AST_Expresion>();

            foreach (var item in context.expr())
            {
                l.Add((AST_Expresion)Visit(item));
            }
            return(new AST_StamentList(context, l));
        }
 /// <summary>
 /// Visit a parse tree produced by <see cref="CoolParser.argexpr"/>.
 /// <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 VisitArgexpr([NotNull] CoolParser.ArgexprContext context)
 {
     return(VisitChildren(context));
 }