Skip to Main Content
The “Oslo” Modeling Language
book

The “Oslo” Modeling Language

by David Langworthy, Brad Lovering, Don Box
October 2008
Beginner to intermediate content levelBeginner to intermediate
208 pages
3h 1m
English
Addison-Wesley Professional
Content preview from The “Oslo” Modeling Language

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 ConstructoroptConstructor  => TermConstructorProductionPrecedence:  precedence IntegerLiteral :

10.1 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

10.2 Term Declaration ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Technical Java™: Developing Scientific and Engineering Applications

Technical Java™: Developing Scientific and Engineering Applications

Grant Palmer
Programming in the .NET Environment

Programming in the .NET Environment

Damien Watkins, Mark Hammond, Brad Abrams

Publisher Resources

ISBN: 9780321606518Purchase book