[antlr-interest] Problem with relative paths on Windows

Peggy Fieland madcapmaggie at yahoo.com
Thu Nov 10 12:19:54 PST 2005


I don't know how you're generating the relative path
name or if the tool is, but that's a UNIX relative
path name ... windows path names are different.

Peggy

--- Braden McDaniel <braden at endoframe.com> wrote:

> I'm observing an apparent problem with relative
> paths on Windows when 
> attempting to generate code from a grammar that
> inherits another one. 
> When issuing this command:
> 
> java -cp c:/data1/bmcdaniel/antlr/275/lib/antlr.jar
> antlr.Tool -o 
> ../../../src/libopenvrml/openvrml -glib 
> ../../../src/libopenvrml/openvrml/Vrml97Parser.g 
> ../../../src/libopenvrml/openvrml/X3DVrmlParser.g
> 
> I get this error:
> 
> ANTLR Parser Generator   Version 2.7.5 (20050128)  
> 1989-2005 jGuru.com
> error: cannot write expanded grammar file 
>
expanded../../../src/libopenvrml/openvrml/X3DVrmlParser.g
> 
> It looks like the name/path of the intermediate
> grammar file isn't being 
> constructed correctly. This works just fine on
> Linux, though.
> 
> Braden
> 
> 



More information about the antlr-interest mailing list