Level 4 Features
The theme of Level 4 is “control static semantics of BabyCobol Links to an external site.”, so focus mostly on:
- handling language semantics (behaviour, usually opposing/complementing the syntax) in the control flow related features
- handling interplay of different features handling the control flow
- watching the topic L4P1 can also be helpful.
Features:
- (4XP):
COPY
Links to an external site.- Implement the file inclusion directive of BabyCobol, including the
REPLACING
clause.
- Implement the file inclusion directive of BabyCobol, including the
- (4XP):
GO TO
Links to an external site.- Implement the “normal”
GO TO
statement of BabyCobol, with the statically resolvable paragraph name as the argument. GO TO
terminates all currently executingLOOP
statementsGO TO
terminates the currently executingPERFORM THROUGH
directive if its target is outside of the executing scope
- Implement the “normal”
- (4XP):
PERFORM THROUGH
Links to an external site.- Add the
THROUGH
clause to thePERFORM
statement implemented at Level 1
- Add the