示例#1
0
        public override Func <Context, ITerm> VisitPathterm_lcid([NotNull] FullSimpleParser.Pathterm_lcidContext context)
        {
            var info = context.GetFileInfo();
            var pt   = Visit(context.pathterm());
            var lcid = context.LCID().GetText();

            return(c => new Proj(info, pt(c), lcid));
        }
 /// <summary>
 /// Visit a parse tree produced by the <c>pathterm_lcid</c>
 /// labeled alternative in <see cref="FullSimpleParser.pathterm"/>.
 /// <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 VisitPathterm_lcid([NotNull] FullSimpleParser.Pathterm_lcidContext context)
 {
     return(VisitChildren(context));
 }