Пример #1
0
 public ConditionalStructure(PlanningParser.ProgramContext context)
 {
     Condition   = context.subjectGd();
     SubProgram1 = CreateInstance(context.program(0));
     SubProgram2 = context.program().Count == 2 ? CreateInstance(context.program(1)) : EmptyProgram;
 }
Пример #2
0
 public LoopStructure(PlanningParser.ProgramContext context)
 {
     Condition  = context.subjectGd();
     SubProgram = CreateInstance(context.program(0));
 }