Question about B3 meta-model and B3 language [message #606957] |
Mon, 10 May 2010 11:45  |
Eclipse User |
|
|
|
For my language, I begin to write all my grammar rules in xtext,
This grammar generate an ecore file which is the meta-model of my grammar.
But, for the b3, I have the impression that the meta-model (ecore file) was created first. and no one rule in the grammar generate an ecore class.
(all rule in the grammar return an EObject of the meta-model).
Why have you chosen this method? What are the advantages of this method?
Jérémie
|
|
|
Re: Question about B3 meta-model and B3 language [message #606965 is a reply to message #606957] |
Mon, 10 May 2010 12:08  |
Eclipse User |
|
|
|
I started by generating the model from the grammar. This is good as it
is a convenient way to explore ways to write the grammar.
When having a decent grammar, the model becomes API, and you don't want
it to change in mysterious ways when doing "bad" things in the grammar.
You also have a lot more control over the grammar that way.
- henrik
On 5/10/10 5:45 PM, jeremie wrote:
> For my language, I begin to write all my grammar rules in xtext,
> This grammar generate an ecore file which is the meta-model of my grammar.
> But, for the b3, I have the impression that the meta-model (ecore file)
> was created first. and no one rule in the grammar generate an ecore class.
> (all rule in the grammar return an EObject of the meta-model).
>
> Why have you chosen this method? What are the advantages of this method?
>
> Jérémie
>
|
|
|
Powered by
FUDForum. Page generated in 0.04547 seconds