Compiler/Preprocessor: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
|||
Line 802: | Line 802: | ||
Note that the program errors out if there are any syntax or other errors when defining the macros. |
Note that the program errors out if there are any syntax or other errors when defining the macros. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "os" for Process |
||
import "./ioutil" for FileUtil, File, Input |
import "./ioutil" for FileUtil, File, Input |
||
import "./str" for Char |
import "./str" for Char |
||
Line 985: | Line 985: | ||
Using the example files; |
Using the example files; |
||
<pre> |
<pre> |
||
$ wren-cli |
$ wren-cli Compiler_Preprocessor.wren -d |
||
How many lines are to be entered? : 4 |
How many lines are to be entered? : 4 |
||
Line 1,025: | Line 1,025: | ||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
$ wren-cli |
$ wren-cli Compiler_Preprocessor.wren -d Source.t |
||
Output: |
Output: |
||