On Fri, Mar 25, 2011 at 3:15 PM, Jason Doege <[email protected]> wrote: > Thanks very much. Do you happen to remember which ANTLRWorks release > contained ANTLR 3.1.3?
AW V1.2.2 contains 3.1.1. Give that one a try. -Ben > > Best regards, > Jason Doege > > On 3/25/2011 4:50 AM, Benjamin Niemann wrote: >> Hi Jason, >> >> the Python target hasn't been updated since the 3.1.3 release. Using >> the runtime with later versions of the tool would probably result in >> very subtle errors, so the code does some very strict checking. >> I'm working right now on bringing Python back up to speed. In the >> meantime you might want to use the 3.1.3 release of antlr from >> http://www.antlr.org/download >> I also updated the wiki to reflect that. >> >> -Ben >> >> On Thu, Mar 24, 2011 at 10:28 PM, Jason Doege<[email protected]> wrote: >>> Hi all, >>> >>> >>> I am attempting to use ANTLRWorks with Python2.7 on Windows 7. I am using >>> the >>> latest ANTLRWorks release which I think includes ANTLR3.3 >>> >>> >>> I obtained the python runtime from the antlr-3.3.tar.gz file specified on >>> this >>> webpage: http://www.antlr.org/wiki/display/ANTLR3/Python+runtime (the >>> "Complete >>> ANTLR 3.x Java binaries jar" file mentioned on the webpage actually >>> contained no >>> Python runtime.) >>> >>> >>> I moved the antlr3 folder to my LIB directory under my python2.7 >>> installation >>> directory as have for every other library I use. >>> >>> I built and compiled a grammar without difficulty and tried to run the >>> resultant >>> parser and I get the following error: >>> >>> RuntimeError: ANTLR version mismatch: The recognizer has been generated by >>> V3.3 >>> Nov 30, 2010 12:45:30, but this runtime is V3.1.3. Please use the V3.3 Nov >>> 30, >>> 2010 12:45:30 runtime or higher. >>> >>> I have been searching for answers to this problem for a couple of days and >>> have >>> come up empty. >>> >>> Does anyone here have any suggestions? >>> >>> Best regards, >>> Jason Doege >>> >>> List: http://www.antlr.org/mailman/listinfo/antlr-interest >>> Unsubscribe: >>> http://www.antlr.org/mailman/options/antlr-interest/your-email-address >>> > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
