[antlr-interest] C Target AST Debug Compile Error
William H. Schultz
whschultz at cedrus.com
Tue Mar 10 13:50:19 PDT 2009
Hello all! I just signed up to this list as I was unable to find any
mention of this issue anywhere on the internet, so I don't know if
it's just me.
I'm getting the following compile errors:
SimpleCWalker.c: In function ‘SimpleCWalker_Ctx_struct*
SimpleCWalkerNewSSD(ANTLR3_COMMON_TREE_NODE_STREAM_struct*,
ANTLR3_RECOGNIZER_SHARED_STATE_struct*)’:
SimpleCWalker.c:358: error: ‘struct
ANTLR3_COMMON_TREE_NODE_STREAM_struct’ has no member named ‘tokenSource’
SimpleCWalker.c:358: error: ‘struct
ANTLR3_COMMON_TREE_NODE_STREAM_struct’ has no member named ‘tokenSource’
SimpleCWalker.c:360: error: ‘struct ANTLR3_TREE_PARSER_struct’ has no
member named ‘setDebugListener’
I'm attaching my modifications to the C Target Makefile that I had to
do in order to get the samples to build a binary under Mac OS X.
There are a couple paths hard-coded into it, so you'll have to do
minor tweaks to get it to work for you, but otherwise, it should be
generic enough to compile any of the C Target samples (I'm definitely
no expert on GNU Make). The above compile errors do NOT happen when
compiling the grammars without ANTLR's "-debug" flag, and it also only
happens with tree grammars. I figured finding the issue in a sample
would seem to imply a bug... unless I'm doing something completely
wrong.
Ideas?
-------------------------------
Hank Schultz
Cedrus Corporation
http://www.cedrus.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 4357 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090310/3d4e78a7/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090310/3d4e78a7/attachment.bin
More information about the antlr-interest
mailing list