4.1 Program structure
-
At the top-most level, a Moby program is structured as a collection
of source groups.
A source group may be specific to a given application or it may be a
library that can be reused by many applications.
- A source group consists of a set of Moby compilation units.
A Moby compilation unit is either a signature, a module, or
a parameterized module.
Associated with each compilation unit is a prelude that describes
various aspects about the compilation context used to compile the unit.
- A signature consists of a sequence of specifications.
- A module or parameterized module has a body that consists of a sequence of
declarations.
- Declarations.
- Expressions.
- At the lowest level is Moby's lexical structure, which is covered in
Chapter 5.
4.2 Notation