Ejemplo n.º 1
0
        public override Func <Context, ITerm> VisitTerm_luc([NotNull] FullSimpleParser.Term_lucContext context)
        {
            var info = context.GetFileInfo();
            var type = _typeVisitor.Visit(context.type());
            var term = Visit(context.term());

            return(ctx =>
            {
                var ctx1 = ctx.AddName("_");
                return new Abs(info, "_", type(ctx), term(ctx1));
            });
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Visit a parse tree produced by the <c>term_luc</c>
 /// labeled alternative in <see cref="FullSimpleParser.term"/>.
 /// <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 VisitTerm_luc([NotNull] FullSimpleParser.Term_lucContext context)
 {
     return(VisitChildren(context));
 }