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 10. Productions

A production is a pattern and an optional constructor. Each production is a scope. The pattern may establish variable bindings which can be referenced in the constructor. A production can be qualified with a precedence that is used to resolve a tie if two productions match the same text (see Section 10.4.1).

ProductionDeclaration:
  ProductionPrecedenceopt PatternDeclaration Constructoropt
Constructor
  => TermConstructor
ProductionPrecedence:
  precedence IntegerLiteral :

Pattern Declaration

A pattern declaration is a sequence of term declarations or the built-in pattern empty which matches "".

PatternDeclaration:

 

empty

 

TermDeclarationsopt

TermDeclarations:

 

TermDeclaration

 

TermDeclarations TermDeclaration

Term Declaration

A term declaration ...

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