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 6. Module

A module is a scope that contains declarations of types (Chapter 3), extents (Section 4.2), and computed values (Section 4.1). Modules override lexical scoping to import symbols that have been exported from another module.

Compilation Unit

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

CompilationUnit:

 

ModuleDeclarationList

ModuleDeclarationList:

 

ModuleDeclaration

 

ModuleDeclarationList ModuleDeclaration

Module Declaration

A ModuleDeclaration is a named container/scope for type declarations, field declarations, and computed value declarations.

ModuleDeclaration:
  module QualifiedIdentifer ModuleBody  ;opt
QualifiedIdentifier:
  Identifier
  QualifiedIdentifier . Identifier
ModuleBody:
  { ImportDirective*  ...

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