io7m
io7m-jparasol
0.11.3
3.8. Modules
3. Declarations
4. Expressions
Previous
Up
Next
3.9
Packages
3.9.1
Description
1
Packages
are to
modules
as
modules
are to
terms
,
types
, and
shaders
.
Packages
provide a non-hierarchical partitioned namespace that separates
modules
for ease of code re-use across projects.
3.9.2
Declarations
1
A
package_declaration
declares that the current
unit
will contain declarations that will be placed in the named package.
2
Multiple
units
can contain the same
package_declaration
, however a single
unit
must contain exactly one
package_declaration
.
3.9.3
Syntax
1
The precise syntax of package declarations is given by the following EBNF:
3.9.3.1. Package declaration syntax
package_path = name_lower , { "." , name_lower } ; package_declaration = "package" , package_path ;
Previous
Up
Next
3.8. Modules
3. Declarations
4. Expressions