-
Notifications
You must be signed in to change notification settings - Fork 0
IncludeHowTo
Kervius edited this page Oct 23, 2014
·
1 revision
Use the language facilities. For example in Shell:
@ source /path/to/library.sh
or in Perl:
@ require '/path/to/library.pl'
The lines, being part of the intermediate script, should follow the rules of the language.
In Shell:
@ boa /path/to/file.boa
In Perl:
@ system( "boa", "/path/to/file.boa" );
Function is being considered for implementation.
Prototype syntax:
@@@ include another.boa @@@
Effects. The content of the file is processed, as if it was part of the main file.
Potential side-effects.
- If included file has interpreter lines in it, it might be hard to predict how it would integrate with the main file.
- To avoid the confusion, the syntax of the magic in the first line, used to set the language, might needs to be changed to be easily distinguishable from the
includedirective.