Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
MDT/OCL/MDT-OCL 3.0.0 Migration Guide
Grammar changes
The Complete OCL grammar is defined by OCLParser.g, OCLLexer.g, OCLKWLexer.g.
The Essential OCL grammar is now defined by EssentialOCL.g, EssentialOCLLexer.g, EssentialOCLKWLexer.g.
In MDT/OCL 1.3 EssentialOCL.g included a number of Complete OCL facilities such as reserved words, ^ and ^^ message operators and @pre suffixes. These are not present in MDT/OCL 3.0.0.
The MDT/OCL 3.0.0 grammar has been changed to align as closely as possible with the OMG OCL 2.1 concrete syntax and to provide the basis for a comprehensive grammar submitted for incorporation in a future OCL specification via resolution of Issues ...
This alignment causes the following changes.
MDT/OCL 1.3 production | MDT/OCL 3.0.0 production |
---|---|
OperationCallExpCS | operationCallExpCS |