Example #1
0
 public PftFieldReference
 (
     PftParser.FieldReferenceContext context
 )
 {
     LeftHand  = (PftLeftHand)PftDispatcher.DispatchFormat(context.leftHand());
     RightHand = (PftRightHand)PftDispatcher.DispatchFormat(context.rightHand());
 }
Example #2
0
        public PftProgram
        (
            PftParser.ProgramContext context
        )
        {
            if (context.pftInfoBlock() != null)
            {
                Info = new PftInfoBlock(context.pftInfoBlock());
                Children.Add(Info);
            }

            foreach (PftParser.CompositeElementContext subContext
                     in context.compositeElement())
            {
                PftAst child = PftDispatcher.DispatchFormat(subContext);
                if (!ReferenceEquals(child, null))
                {
                    Children.Add(child);
                }
            }
        }