Skip to main content


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 17:40
chuck  is currently offline chuck Friend
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 Sep 25 04:32:36 GMT 2024

Powered by FUDForum. Page generated in 0.03546 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top