Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » What does this line means in a XText grammar ?
What does this line means in a XText grammar ? [message #526430] Sat, 10 April 2010 23:03 Go to next message
Matthieu  is currently offline Matthieu Friend
Messages: 10
Registered: February 2010
Junior Member
Hello everybody,
(I hope it's the right section to post this question...)
Well, I would like to know what does this line means in a Xtext grammar (my DSL is called "SMPL") :

generate sMPL "http://something..."

Is the URL important ?
Thanks Smile
Re: What does this line means in a XText grammar ? [message #526497 is a reply to message #526430] Sun, 11 April 2010 21:26 Go to previous message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 671
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 11.04.10 01.03, Matthieu wrote:
> Hello everybody,
> (I hope it's the right section to post this question...)
> Well, I would like to know what does this line means in a Xtext grammar
> (my DSL is called "SMPL") :
>
> generate sMPL "http://something.."
>
> Is the URL important ?

When XText generates a model, it creates an EPackage with EClasses and
EStructuralFeatures corresponding to the rules in your grammar. The URL
is used elsewhere to identify this package. However, there are few rules
concerning it's format. You could consider using a platform resource,
e.g. platform:/plugin/<the name of your grammar plugin>/<path to model>

Hallvard
Previous Topic:[ATL] default attribute
Next Topic:[QVTo] Adding new metamodel to mmregistry.MetamodelRegistry
Goto Forum:
  


Current Time: Sat Aug 24 02:13:59 GMT 2019

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

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

Back to the top