|
|
|
|
|
|
10
|
to just directly insert the contents of `<filename>` into the file. Instead of wasting the compilers energy checking for circular
|
10
|
to just directly insert the contents of `<filename>` into the file. Instead of wasting the compilers energy checking for circular
|
|
11
|
sources, you have two options, to not be so stupid or wait for the call stack to overflow.
|
11
|
sources, you have two options, to not be so stupid or wait for the call stack to overflow.
|
|
12
|
|
12
|
|
|
13
|
-The compiler runs like `node compiler.js file.mc` where `file.mc` is the file you wish to compile, and this will produce an
|
|
|
|
14
|
-`output.js` which requires `stdlib.js` to be in the same directory when running for now at least.
|
|
|
|
|
|
13
|
+The compiler runs like `node compiler.js file.mc` where `file.mc` is the file you wish to compile, and this will produce a
|
|
|
|
14
|
+`file.mc.js` which requires the `lib` to be present in the same directory when running for now at least.
|
|
15
|
|
15
|
|
|
16
|
Functions and variables are in different scopes, so variables can have the same names as functions - even builtins,
|
16
|
Functions and variables are in different scopes, so variables can have the same names as functions - even builtins,
|
|
17
|
thus making `(assign assign 5)` a totally okay thing to do.
|
17
|
thus making `(assign assign 5)` a totally okay thing to do.
|