Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » leaving model to parse ocl sentence.(ocl sentence cst)
leaving model to parse ocl sentence. [message #540961] Thu, 17 June 2010 19:38 Go to next message
Victorino  is currently offline Victorino
Messages: 21
Registered: June 2010
Junior Member
This is post already,
and I remove for clear.
Because the same context is show on the reply and another post.
Thanks for reply.

[Updated on: Sat, 19 June 2010 00:09]

Report message to a moderator

Re: leaving model to parse ocl sentence. [message #541015 is a reply to message #540961] Fri, 18 June 2010 05:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
On 17/06/2010 20:38, Victorino wrote:
> I found one page is too late,
> that page is :
> " http://www.eclipse.org/forums/index.php?t=msg&&th=17 085&goto=54993 ",
> because I meet the same problem for a few months ago,
> and I still can not solve.
> I write the code belowed:
> ============================================================ ===
> OCL<?,EClassifier,?,?,?,?,?,?,?,Constraint,EClass,EObject> ocl;
> ocl=OCL.newInstance(env);//EcoreEnvironmentFactory.INSTANCE) ;
> OCLInput input=new OCLInput("inv: size>0");
> List<Constraint> constraints=ocl.parse(input);
> ============================================================ ===
> but I always got an SemanticException.
> It says "expected parser to return PackageDeclarationCS but got InvCS"
>
> if I changed input to "pre: size>0" or "post: size>0",
> It says "expected parser to return PackageDeclarationCS but got
> PrePostOrBodyDeclCS"
>
> And how can I use the parser result to continued my work ???
> I am almost newer to OCL,
> and found it can improve diagrams (either Ecore or UML),
> but I am stuck at parse.
> Please help me ! Please ~~~

This seems to be the same message that you posted hour an hour
previously and which I have already answered.
Re: leaving model to parse ocl sentence. [message #541081 is a reply to message #540961] Fri, 18 June 2010 09:31 Go to previous message
Victorino  is currently offline Victorino
Messages: 21
Registered: June 2010
Junior Member
Yes.
I have seem your reply already.
This post just worry about I post you are not looked,
because I am post reply by other.
Now, I post the new one in there,
Thx for your reply again.
Best Regrads.
Previous Topic:[XPAND] duplication problem in html report
Next Topic:OCL Invariant to find cycle in inheritance tree interface
Goto Forum:
  


Current Time: Thu Sep 18 21:54:11 GMT 2014

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

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