|Re: Split XText Grammar into multiple files [message #899059 is a reply to message #899011]
||Mon, 30 July 2012 11:40
| Henrik Lindberg
Registered: July 2009
On 2012-30-07 9:28, frank fotso wrote:|
> hi this means that i can't extend a grammar in another grammar twice ?,
grammar A and B can both extend grammar X, and grammar P can extend A, T
extend B etc. What you can not do is have a grammar that extends more
than one other grammar.
> so i want to create many different grammar with their own model and i
> want at the end to import all the grammar created in another one such
> that the one containing the imported can be consider as a big model.
No, that will not work.
You can however separate the model from the grammar and do the reuse,
combination in the models, and then use these models in various grammars.
> i also want to know if every grammar created since they have their own
> model , if i make a change in some of them , should i change my grammar
> containing that imported file too?
When a grammar is changed, you need to regenerate all grammars that
makes use of it to make it take effect.
If you import models instead of generating them from the grammar, you do
not need to regenerate the grammar/parsers as long as the model changes
are compatible with what is being used by the already built grammar.
Does that help you?
Powered by FUDForum
. Page generated in 0.03146 seconds