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 #606957] 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 #606965 is a reply to message #606957] 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:Using B3 language with Java classes
Next Topic:Question about B3 meta-model and B3 language
Goto Forum:
  


Current Time: Thu Apr 25 09:21:04 GMT 2024

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

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

Back to the top