GO TO
within a paragraph. Watch out for the interaction of NEXT SENTENCE with the other BabyCobol features: NEXT SENTENCE
as the last statement of the paragraph does nothing, because it has to end with a dot (as each paragraph consists of only full sentences!), so it ends a sentence itself and transfers control to the sentence after that.LOOP
, it cleans up call stack contents, temporary variables and other local effects of the context(s) being left behind.NEXT SENTENCE
at the beginning of the paragraph can be used to comment out one of more of the immediately following statements, making them dead code without marking each line as an explicit comment.NEXT SENTENCE.
(with a dot) does nothing, since it transfers control to the next sentence that was about to be executed anyway. As such, it can be used in any place where a sentence is expected but no action is needed, similar to the role EXIT
plays in COBOL, or comparable “no operation” statements in other languages.