Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » B3 » Question about B3 meta-model and B3 language
Question about B3 meta-model and B3 language [message #606957] Mon, 10 May 2010 11:45 Go to next message
jeremie is currently offline jeremie
Messages: 233
Registered: April 2010
Senior Member
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 Go to previous message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2492
Registered: July 2009
Senior Member
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
>
Previous Topic:Using B3 language with Java classes
Next Topic:Question about B3 meta-model and B3 language
Goto Forum:
  


Current Time: Sun Apr 20 19:48:07 EDT 2014

Powered by FUDForum. Page generated in 0.02464 seconds