Chapter 13. Modules
An Mg module is a scope that contains declarations of languages (Chapter 12). Declarations exported by an imported module are made available in the importing module. Thus, modules override lexical scoping that otherwise governs Mg symbol resolution. Modules themselves do not nest.
13.1 Compilation Unit
Several modules may be contained within a CompilationUnit, typically a text file.
CompilationUnit:
ModuleDeclarations
ModuleDeclarations:
ModuleDeclaration
ModuleDeclarations ModuleDeclaration
13.2 Module Declaration
A ModuleDeclaration is a named container/scope for language declarations.
ModuleDeclaration: module QualifiedIdentifer ModuleBody ;optQualifiedIdentifier: Identifier QualifiedIdentifier . IdentifierModuleBody: ...
Get The “Oslo” Modeling Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.