The include
command includes another module content on
the same position where it’s command is used. The included module is
parsed and executed in the same time at the include
command
is executed. The syntax is:
include "<module-path>";
<module-path>
is the relative or absolute path to
module’s file to include, using /
as directory separator. A
path starting with /
means an absolute path, where it’s
start on the current filesystem root. Relative paths will be relative
starting from a common path where it’s considered the “current working
directory”, and not relative from where the module is.include "modules/registers.mya";
include "config.mya";
include "/etc/mya/modules/common.mya";