Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCL parsing without a model?
OCL parsing without a model? [message #989372] Wed, 05 December 2012 16:50 Go to next message
Hector Chavez is currently offline Hector Chavez
Messages: 34
Registered: February 2010
Member
Is it possible to use the MDT/OCL parser without any associated model? I'm only interested in the resulting AST, I and don't need to evaluate the expression. All the examples I have seen so far require a context.

Thanks for your help.

--
Hector

Re: OCL parsing without a model? [message #989377 is a reply to message #989372] Wed, 05 December 2012 17:11 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
Hi

With the Ecore-based OCL, you can use a dummy model with just a useless
class, or

with the Pivot-based OCL, you can use a null context.

Regards

Ed Willink



On 05/12/2012 21:50, Hector Chavez wrote:
> Is it possible to use the MDT/OCL parser without any associated model?
> I'm only interested in the resulting AST, I and don't need to evaluate
> the expression. All the examples I have seen so far require a context.
>
> Thanks for your help.
>
> --
> Hector
>
>
Previous Topic:OCLinEcore : PermGen space error
Next Topic:extending OCL MDT with "just" a temporal operator always
Goto Forum:
  


Current Time: Tue Jul 22 15:42:49 EDT 2014

Powered by FUDForum. Page generated in 0.01498 seconds