Exemplo n.º 1
0
        public override Func <Context, ITerm> VisitTermseq_termseq([NotNull] FullSimpleParser.Termseq_termseqContext context)
        {
            var info = context.GetFileInfo();
            var t    = Visit(context.term());
            var ts   = Visit(context.termseq());

            return(c => new App(info, new Abs(info, "_", new TypeUnit(), ts(c.AddName("_"))), t(c)));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Visit a parse tree produced by the <c>termseq_termseq</c>
 /// labeled alternative in <see cref="FullSimpleParser.termseq"/>.
 /// <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 VisitTermseq_termseq([NotNull] FullSimpleParser.Termseq_termseqContext context)
 {
     return(VisitChildren(context));
 }