Пример #1
0
        public override ConcatValue VisitConcat([NotNull] JLMLParser.ConcatContext context)
        {
            var children = context.children.Skip(2).Take(context.ChildCount - 3).Where(o => o.GetText() != ",");

            return(new ConcatValue
            {
                Values = children.Select(o => o.GetTextValue() as object).ToList(),
            });
        }
Пример #2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="JLMLParser.concat"/>.
 /// <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 VisitConcat([NotNull] JLMLParser.ConcatContext context)
 {
     return(VisitChildren(context));
 }