Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsleaving model to parse ocl sentence.
https://www.eclipse.org/forums/index.php/mv/msg/170251/540961/#msg_540961
and I remove for clear.
Because the same context is show on the reply and another post.
Thanks for reply.]]>Victorino 2010-06-17T19:38:15-00:00Re: leaving model to parse ocl sentence.
https://www.eclipse.org/forums/index.php/mv/msg/170251/541015/#msg_541015
> 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.]]>Ed Willink2010-06-18T05:09:39-00:00Re: leaving model to parse ocl sentence.
https://www.eclipse.org/forums/index.php/mv/msg/170251/541081/#msg_541081
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.]]>Victorino 2010-06-18T09:31:07-00:00