[antlr-interest] GCJ
Robert Colquhoun
rjc at trump.net.au
Fri Jul 11 02:11:27 PDT 2003
Hello,
I got it going:
-sh-2.05b$ gcj --main=antlr.Tool antlr.jar
antlr/PreservingFileWriter.java: In class `antlr.PreservingFileWriter':
antlr/PreservingFileWriter.java: In method
`antlr.PreservingFileWriter.close()':
antlr/PreservingFileWriter.java:54: warning: exception handler inside code that
is being protected
antlr/Tool.java: In class `antlr.Tool':
antlr/Tool.java: In method
`antlr.Tool.copyFile(java.lang.String,java.lang.Strin
g)':
antlr/Tool.java:113: warning: exception handler inside code that is being
protec
ted
-sh-2.05b$ ls -l antlr.jar a.out
-rw-r--r-- 1 rjc users 358680 Jul 11 18:42 antlr.jar
-rwxr-xr-x 1 rjc users 2570901 Jul 11 18:43 a.out
-sh-2.05b$ ./a.out
ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
usage: java antlr.Tool [args] file.g
-o outputDir specify output directory where all output generated.
-glib superGrammar specify location of supergrammar file.
-debug launch the ParseView debugger upon parser invocation.
-html generate a html file from your grammar.
-docbook generate a docbook sgml file from your grammar.
-diagnostic generate a textfile with diagnostics.
-trace have all rules call traceIn/traceOut.
-traceLexer have lexer rules call traceIn/traceOut.
-traceParser have parser rules call traceIn/traceOut.
-traceTreeParser have tree parser rules call traceIn/traceOut.
-h|-help|--help this message
-sh-2.05b$ cp ../maverick/src/org/maverickdbms/tools/BASIC.g .
-sh-2.05b$ ./a.out BASIC.g
ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
-sh-2.05b$
Had to do some hacking to the antlr sources to get it working and remove
the debug classes from the jar.
Will follow up with a patch if anybody wants.
- Robert
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list