Generation oddity with imported grammar [message #59618] |
Thu, 16 July 2009 15:40  |
Eclipse User |
|
|
|
Hi,
I get a strange generation error with already generated packages from
imported grammar duplicated in dependent grammar project src-gen.
context :
-----------------------------------
grammar A with Terminals
TopA :
(xyzs+=XYZ)+
;
XYZ :
'xyz' name=ID ';'
;
-----------------------------------
-----------------------------------
grammar B with A
import "http://www.sf.net/ABC"
// ABC package URI as declared in A/plugin.xml resolve XYZ right !
TopB :
(imports+=IMPORT)+
(links+=LINK)+
;
IMPORT:
'import' uri=STRING ';'
;
LINK :
' link' name=ID 'to' refXYZ=[XYZ] ';' // from A
;
-----------------------------------
question :
*) http:// protocol URI for imported package pb ?
strange behavior : already generated packages from imported grammar A are
duplicated in dependent grammar B project src-gen directory.
When looking at B.genmodel something say 'http://sourceforge.net/ABC' not
found.
Pb is : I declared "http://www.sf.net/ABC" and tried to import accordingly
... !
Should generated_package extension IDs like 'http://...' should be avoided
?
Is it a bug ?
Is it working as it should ?
regards,
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04528 seconds