Measures Concepts
GitHub icon

OCL

OCL - Programming language

< >

OCL is a programming language created in 1997.

#1104on PLDB 27Years Old

The Object Constraint Language (OCL) is a declarative language describing rules applying to Unified Modeling Language (UML) models developed at IBM and is now part of the UML standard. Initially, OCL was merely a formal specification language extension for UML. OCL may now be used with any Meta-Object Facility (MOF) Object Management Group (OMG) meta-model, including UML. Read more on Wikipedia...


Example from the web:
context Person inv: self.age >=0 context Person inv: self.age<18 implies self.cars->isEmpty()

Language features

Feature Supported Token Example
Comments ✓
-- A comment
Line Comments ✓ --
-- A comment
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout