mix different extensions with different content in one project [message #727434] |
Wed, 21 September 2011 09:49 |
Michal S Messages: 74 Registered: July 2011 |
Member |
|
|
Hello,
I have created one grammar, which consist of 3 more-less independent parts. It works perfect, but I need to do following improvement:
I would like to have in projects different extension for all of these 3 parts. These would not be big problem itself... I would just create 3 separate projects and use generated plugins from all of them. Problem is, that I need to reference between these files, as it is contained in one grammar.
How can I do this? Is there any manual for doing this?
Example:
Now I have all my content in file1.xyz, file2.xyz (in all files are allowed same EntityTypes and can be mixed)...
SomeEntityType EntityA{
var a
var b
}
AnotherEntityType EntityB{
varref x EntityA.A
entityref = EntityC
}
OneMoreEntityType EntityC{
varrefref EntityB.x
varref EntityA.b
}
And I want now to SomeEntityType is only in files with extension .xyzA, AnotherEntityType in .xyzB and OneMoreEntityType in .xyzC in one Eclipse project and they should allow same referencing as before.
NOTE: SomeEntityType does not need to reference anything, AnotherEntityType needs to reference both SomeEntityType and OneMoreEntityType and OneMoreEntityType needs to reference both SomeEntityType and AnotherEntityType according to example above.
Thank you in advance.
Regards,
Michal
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03451 seconds