[antlr-interest] Looking for quick help on compiling Antlr

Brent Yates brent.yates at gmail.com
Wed Jun 11 08:31:06 PDT 2008


George,

I am using the Antlr3.1b1 release with the C runtime (Windows XP) and it
works just fine so the problem is probably in your classpath / launch
procedure.  I use a batch file to compile my grammars.  Here is an example
that works for me:

@echo off
set
CLASSPATH=E:\UtilityDev\VerilogParser\AntlrWorks\antlr-3.1b1\lib\antlr-2.7.7.jar;E:\UtilityDev\VerilogParser\AntlrWorks\antlr-3.1b1\lib\antlr-3.1b1.jar;E:\UtilityDev\VerilogParser\AntlrWorks\antlr-3.1b1\lib\antlr-runtime-3.1b1.jar;E:\UtilityDev\VerilogParser\AntlrWorks\antlr-3.1b1\lib\gunit-1.0.2.jar;E:\UtilityDev\VerilogParser\AntlrWorks\antlr-3.1b1\lib\stringtemplate-3.1.jar
set cmd=java -Xmx750M org.antlr.Tool SystemVerilog.g
echo %cmd%
rem %cmd%
%cmd% 2>error.txt


My classpath environment variable is set in the batch file to point to each
of the necessary JAR files.

Hope this helps!

Regards,

Brent Yates
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080611/d236c14d/attachment-0001.html 


More information about the antlr-interest mailing list