Compiler/Simple file inclusion pre processor: Difference between revisions

Content added Content deleted
(→‎{{header|Raku}}: Add a (entirely bogus) Raku example)
m (→‎{{header|Raku}}: fix some typos)
Line 473: Line 473:
This will find: any line starting with '#include' followed by a (absolute or relative) path to a file, or #include ./path/to/file.name enclosed in double curly brackets anywhere in the file.
This will find: any line starting with '#include' followed by a (absolute or relative) path to a file, or #include ./path/to/file.name enclosed in double curly brackets anywhere in the file.


It will replace the #include notation by the contents of the file referenced, will follow nested #included arbitrarily deeply. and echo the processed file to STDOUT.
It will replace the #include notation by the contents of the file referenced, will follow nested #includes arbitrarily deeply, and echo the processed file to STDOUT.


Let's test it out. Here is a test script and a bunch of include files.
Let's test it out. Here is a test script and a bunch of include files.