Compiler/Simple file inclusion pre processor: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Raku}}: fix some typos) |
Thundergnat (talk | contribs) (→{{header|Raku}}: Add some identifiers to the included content to make it easier to tell where it starts and stops) |
||
Line 489: | Line 489: | ||
include1.file |
include1.file |
||
<pre># included #include1 file > |
<pre># included #include1 file >1> |
||
# test to ensure it only tries to execute #include of the right format |
# test to ensure it only tries to execute #include of the right format |
||
Line 497: | Line 497: | ||
#include ./include2.file # comments ok at end of include line |
#include ./include2.file # comments ok at end of include line |
||
# < |
# <1<</pre> |
||
include2.file |
include2.file |
||
<pre># nested #include2.file > |
<pre># nested #include2.file >2> |
||
say "Test for an nested include inside a line: {{ #include ./include3.file }}"; |
say "Test for an nested include inside a line: {{ #include ./include3.file }}"; |
||
# pointless but why not? < |
# pointless but why not? <2<</pre> |
||
include3.file |
include3.file |
||
<pre>> |
<pre>>3> Yep, it works! <3< |
||
</pre> |
</pre> |
||
Line 519: | Line 519: | ||
say .³ for ^10; |
say .³ for ^10; |
||
# included #include1 file > |
# included #include1 file >1> |
||
# test to ensure it only tries to execute #include of the right format |
# test to ensure it only tries to execute #include of the right format |
||
Line 526: | Line 526: | ||
# and more comments |
# and more comments |
||
# nested #include2.file > |
# nested #include2.file >2> |
||
say "Test for an nested include inside a line: > |
say "Test for an nested include inside a line: >3> Yep, it works! <3<"; |
||
# pointless but why not? < |
# pointless but why not? <2<# comments ok at end of include line |
||
# < |
# <1< |
||
</pre> |
</pre> |
||