Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Ocl grammar use
Ocl grammar use [message #753871] Sat, 29 October 2011 13:40
chuck  is currently offline chuck
Messages: 160
Registered: July 2010
Senior Member
Hi ...finally integrated plugin of essentialOcl grammar but i didnt understandhow to use it... I mean... if would use estructuralfeature of ecore and write some ocl constraint on it... for example

self.references->select(e|e...) and so on... where self is my structural feature and references a 0..* reference to something... i tried to use :

Specification returns essentialocl::ExpSpecificationCS:

exprString=UNQUOTED_STRING ';'
;

terminal UNQUOTED_STRING: // Never forward parsed; just provides a placeholder
'£$%^£$%^' // for reverse serialisation of embedded OCL
;

as in oclinecore project but when I type self i can't continue to write the expression...
thx again
Previous Topic:scope problem
Next Topic:How to properly translate this antlr grammer into Xtext?
Goto Forum:
  


Current Time: Wed May 22 05:21:33 EDT 2013

Powered by FUDForum. Page generated in 0.02848 seconds