Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

OCL

< >

OCL is a programming language created in 1997.

#754on PLDB 27Years Old
Wikipedia

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 Example Token
Comments ✓ -- A comment
Line Comments ✓ -- A comment --
Semantic Indentation X
View source
- Build the next great programming language · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements · Part of the World Wide Scroll