Hi. For imports, we need to ensure we don't use plain <name> anymore  
for classnames and constructors.  If two grammars import same A.g  
then you will write A.java and then overwrite A.java again.  All  
imported grammars result in special versions of generated parsers  
specific to delegator.  New name for A is R_A if R is the importing  
root grammar.  Could be X_Y_Z etc...

Just sync (I tweaked getRecognizerName in Grammar) and do as I did:

        Java.stg changed <name> refs in lexer and genericParser to  
<g.recognizerName>.

edit //depot/code/antlr/main/src/org/antlr/codegen/templates/Java/ 
Java.stg#126
edit //depot/code/antlr/main/src/org/antlr/tool/CompositeGrammar.java#6
edit //depot/code/antlr/main/src/org/antlr/tool/Grammar.java#229
Change 4710 submitted.

Ter

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Reply via email to