O'Reilly logo

The “Oslo” Modeling Language by Don Box, Brad Lovering, David Langworthy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Compilation Unit

Several modules may be contained within a CompilationUnit, typically a text file.

CompilationUnit:

 

ModuleDeclarations

ModuleDeclarations:

 

ModuleDeclaration

 

ModuleDeclarations ModuleDeclaration

Module Declaration

A ModuleDeclaration is a named container/scope for language declarations.

ModuleDeclaration:
  module QualifiedIdentifer ModuleBody ;opt
QualifiedIdentifier:
  Identifier
  QualifiedIdentifier . Identifier
ModuleBody:
  { ImportDirectives ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required