[antlr-interest] antlr 3, language=C, getting pANTLR3_RECOGNIZER_SHARED_STATE unknown
Jim Idle
jimi at temporal-wave.com
Thu Mar 13 07:06:46 PDT 2008
Look at the intermediate builds page on the main download page. Pick out the tar on that page with the latest date on it J
Jim
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Chris Snyder
Sent: Wednesday, March 12, 2008 8:25 PM
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] antlr 3, language=C, getting pANTLR3_RECOGNIZER_SHARED_STATE unknown
Thanks Jim,
That would certainly be a problem. ;>)
Is the 3.1 c snapshot in a downloadable tar ball or do I need to figure out how to get the files from the development tree?
I appreciate your guidance.
Chris
_____
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Jim Idle
Sent: Wednesday, March 12, 2008 10:54 PM
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] antlr 3, language=C,getting pANTLR3_RECOGNIZER_SHARED_STATE unknown
You are using the 3.0.1 runtime library with the 3.1 snapshot. You will need to use the 3.1 C runtime snapshot if you want to run ANTLR 3.1, or drop your ANTLR tool jar version to 3.0.1.
Jim
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Chris Snyder
Sent: Wednesday, March 12, 2008 7:12 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] antlr 3, language=C, getting pANTLR3_RECOGNIZER_SHARED_STATE unknown
I'm trying to compile my C lexer and I'm getting several errors but the first is this:
error C2081: 'pANTLR3_RECOGNIZER_SHARED_STATE' : name in formal parameter list illegal
which corresponds to these lines in the generated lexer:
// Function protoypes for the constructor functions that external translation units
// such as delegators and delegates may wish to call.
//
...
ANTLR3_API pMScriptLexer MScriptLexerNewSSD (pANTLR3_INPUT_STREAM instream, pANTLR3_RECOGNIZER_SHARED_STATE state);
I searched through the libantlr3c-3.0.1 files and didn't find that definition anywhere. I do see that it appears to be coming from C.stf template.
Any idea what I'm missing?
Thanks,
Chris
T-VEC Technologies, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080313/6315761b/attachment.html
More information about the antlr-interest
mailing list