Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » B3 » Question about B3 meta-model and B3 language
Question about B3 meta-model and B3 language [message #532631] Mon, 10 May 2010 15:45 Go to next message
jeremie is currently offline jeremieFriend
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 #532647 is a reply to message #532631] Mon, 10 May 2010 16:08 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
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:Question about B3 meta-model and B3 language
Next Topic:stacktraces in aggregator when trying to drag/drop/copy/paste
Goto Forum:
  


Current Time: Tue Mar 19 04:11:47 GMT 2024

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

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

Back to the top