public PftFieldReference ( PftParser.FieldReferenceContext context ) { LeftHand = (PftLeftHand)PftDispatcher.DispatchFormat(context.leftHand()); RightHand = (PftRightHand)PftDispatcher.DispatchFormat(context.rightHand()); }
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); } } }