Source files
Veila code is organized into modules, which correspond to source files.
Source file types
Veila has two types of source files: modules and scripts.
Modules
By default, the name of a source file is used as the module name.
Scripts
Scripts are files designed for simple execution and not used as part of a larger
project. They can import names from other modules, but cannot export anything.
In addition, the entire file is an implicit #main block, so no separate
#main declaration is needed.
Imports
Both script and modules can import code from other modules using the #import
keyword.
Exports
Modules can export individual declarations by prefixing #export before them:
#module
#export make-adder ← # (amount) # _ + amount