Skip to content

IncludeHowTo

Kervius edited this page Oct 23, 2014 · 1 revision

Includes

Include library for the interpreter language

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.

Include another boa file

Include output of another pre-processed file

In Shell:

@ boa /path/to/file.boa

In Perl:

@ system( "boa", "/path/to/file.boa" );

Include another boa file

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 include directive.

Clone this wiki locally