[antlr-interest] Problems with the C version of ANTLR

Andreas Volz lists at brachttal.net
Wed Sep 9 13:59:23 PDT 2009


Am Tue, 08 Sep 2009 15:20:14 -0700 schrieb Jim Idle:

> Andreas Volz wrote:Am Sun, 6 Sep 2009 09:40:44 +0200 schrieb Andreas
> Volz:
> 
>   Then I installed ANTLR-3.0.1 (Ubuntu) from repository and the C
> runtime from ANTLR-3.0.1 from source. This should fit together.
>     
>   
> As I said, you need to install 3.1.3 or even 3.1.4 snapshot.

I've installed 3.1.3 and now the next problem with the example:

VCard.c: In function 'main':
VCard.c:154: error: 'struct ANTLR3_LEXER_struct' has no member named 'tokSource'
VCard.c:200: error: 'struct ANTLR3_BASE_RECOGNIZER_struct' has no member named 'errorCount'
VCard.c:202: error: 'struct ANTLR3_BASE_RECOGNIZER_struct' has no member named 'errorCount'
VCard.c:94: warning: unused variable 'nodes'
make: *** [VCard.o] Error 1

Even with a C compiler. Did the API change in this version? I
shortly looked into the API, but see no fast solution.

How should I change my example to get it compiling?

regards
	Andreas


More information about the antlr-interest mailing list