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

George J. Shannon George.Shannon at raphaelanalytics.com
Tue Jun 10 23:54:22 PDT 2008


I've been having a lot of pretty simple problems with getting the beta
version of 3.1 to compile a grammar.  I would appreciate it if anyone could
offer some suggestions.

When I execute java org.antlr.Tool I receive an error message for class not
found (org.antlr.stringtemplate.StringTemplateErrorListener)  The same
grammar worked fine in 3.0 but I have to migrate to 3.1 to generate a C
version of the grammar parser (3.1b per Jim Idle).

Anyway, I figure maybe something is broke somewhere between StringTemplate
and Antlr, so I take a shot in the dark and run ant build per installation
instructions.

But I get errors about duplicate classes (org.antlr.tool.ANTLRLexer,
org.antlr.tool.ANTLRParser, etc).  I checked class paths etc and everything
seems OK.

Well, OK I'll try another tack; I'll rebuild ANTLRworks to target 3.1b
instead of 3.0.  But a method in an ANTLR 3.0 class is no longer used in 3.1
so it bombs.

I'm basically stuck - and I'm in need of a quick answer so I can get my
prototype off center.

Has anyone else had similar problems?  If so, is there an easy fix?  It's
probably a pretty simple thing but I'm not seeing it outright.

By the way, I'm on XP SP3 with Java 1.6.

Thanks in advance,

Regards,

 

George Shannon

President, Raphael Analytics, Inc.

16 Spur Drive

Fenton, MO 63026

(314) 550-5589 (cell)

 <mailto:George.Shannon at raphaelanalytics.com>
George.Shannon at raphaelanalytics.com

 <http://www.raphaelanalytics.com> www.raphaelanalytics.com

 

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.

 

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


More information about the antlr-interest mailing list