ALGOL 68RS: Difference between revisions

→‎Example: lang -> syntaxhighlight
mNo edit summary
(→‎Example: lang -> syntaxhighlight)
 
Line 23:
FINISH</lang>
=== Example ===
<langsyntaxhighlight lang=algol68>PROGRAM (thinking, displaying) chess
BEGIN
MODE PIECE = STRUCT(...);
Line 37:
CONTEXT thinking IN chess
...
FINISH</langsyntaxhighlight>
 
An entire program can thus be '''composed''' of pieces of other modules, particularly if a ''hole'' contains a sub-''hole'' (eg displaypiece), then this ''hole'' can in-turn be pulled into the composition.
3,044

edits