antlr2.5 puts the path of the grammar-file that was passed as a command line arg
into a javadoc comment of the generated sourcefile,
e.g.:
/*
 * ANTLR-generated file resulting from grammar ...\unc.g
 */

the problem is that on windows systems using backslashes (from 
java.io.File.toString())
leads to compiler failure in the generated source when \u is used (illegal 
unicode escape sequence) 
I don't know if this problem is fixed in newer antlr-versions,
but as I'm forced to use version 2.5 it would be nice to have a little change in
org.apache.tools.ant.taskdefs.optional.ANTLR.execute()
->
commandline.createArgument().setValue(target.toString().replace('\\','/'));


Michael



______________________________________________________________________________
Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, 
ist aber viel g�nstiger! Alle Infos: http://diba.web.de/?mc=021104


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to