public PftFormatItemPlus(PftParser.FormatItemPlusContext node)
     : base(node)
 {
     foreach (PftParser.FormatItemContext context in node.formatItem())
     {
         PftAst item = PftNonGrouped.DispatchContext(context);
         Children.Add(item);
     }
 }
Example #2
0
 public PftNonGrouped(PftParser.NonGroupedContext node)
     : base(node)
 {
     PftParser.FormatItemPlusContext plusContext = node as PftParser.FormatItemPlusContext;
     if (plusContext != null)
     {
         foreach (PftParser.FormatItemContext context in plusContext.formatItem())
         {
             PftAst item = DispatchContext(context);
             Children.Add(item);
         }
     }
     else
     {
         throw new ApplicationException();
     }
 }
Example #3
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="PftParser.FormatItemPlus"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitFormatItemPlus([NotNull] PftParser.FormatItemPlusContext context)
 {
 }