Overview
Scripts contain file configuration or tests and are not part of production applications.
- Configuration scripts are used by the compiler for file management and configuration.
- Test scripts are used by the test framework.
Configuration scripts begin with the config script
keyword. Test scripts begin with the script
keyword. For example:
script A {
// some code
}
Script source files must use the .mufl extension.
Scripts may contain modules.
Because scripts are considered not security sensitive, the code inside a script may contain IO operations (such as _print
) and other features which are not available in MUFL applications. For example:
script {
_print "hello".
}
Scripts may have an optional name, which is not material because scripts cannot be referred to from outside. For example:
script print_me {
_print "hello".
}
Scripts may load libraries. For example:
script loads library glob {
_print (glob::pattern "*").
}