|
|
|
|
Re: package without brackets [message #766511 is a reply to message #766462] |
Thu, 15 December 2011 22:57 |
Henrik Lindberg Messages: 2509 Registered: July 2009 |
Senior Member |
|
|
Sorry, but I have trouble understanding your question.
Just seeing snippets of the grammar and sample input makes it very
difficult to offer any concrete help.
- henrik
On 2011-15-12 21:48, Xtexter wrote:
> Well, how can i use the syntactic predicate => to have the following
> example code:
>
> module(m1)
> married(tim).
> married(sara).
> single(tim,12,3,2011).
>
>
> Actually mydsl allows one module definition or none i.e. the previous or
> this:
>
>
> married(tim).
> married(sara).
> single(tim,12,3,2011).
>
> I could do this via this grammar:
>
> Model:
> ('module' '(' name=ID ')')? elements+=Elements;
>
> but i dont have folding in the eclipse editor although the lines are
> contained?! i have in this case a Model with some name and a list of the
> contents as if i borrow the main rule of the model (in grammar level) to
> represent my module (in code level)
> thanks for any help.
> Mokhtar
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03482 seconds