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