Compiler/Simple file inclusion pre processor: Difference between revisions
Compiler/Simple file inclusion pre processor (view source)
Revision as of 15:28, 6 June 2021
, 2 years ago→{{header|ALGOL 68}}: Typo
(Typos) |
(→{{header|ALGOL 68}}: Typo) |
||
Line 39:
<br>Implements file inclusion via pragmatic comments as in ALGOL 68G.
<br>A pragmatic comment such as <code>PR read "somefile.incl.a68" PR</code> or <code>PR include "somefile.incl.a68" PR</code> can appear anywhere in the source and will cause the text of somefile.incl.a68 to be included at that point (Note, ALGOL 68G does not support "include" as an alternative to "read").
<br>The PR...PR will not be recognised inside comments or string literals and cannot appear inside a symbol, i.e. 1PR...PR2
<br>
PR can also be written as PRAGMA.
|