[antlr-interest] Problems with x86_64 compile.

Ric Klaren ric.klaren at gmail.com
Fri Jan 13 00:31:57 PST 2006


Hi,

Didn't run into 64 bit issues with antlr so far (x86_64, fedora 4).
Could you provide some additional information? GCC version and antlr
version ?


On 1/12/06, Mike Matera <antlr at fatboycentral.com> wrote:
> I have not been able to sucessfully use ANTLR (c++ mode) on my x86_64
> machine when it is natively compiled.  A 32-bit binary works fine.  The
> symptom is:
>
> Given this lexer rule:
>
> STRING_LIT
>   : '"'! ( '"' '"'! | ~('"'|'\n'|'\r') )*
>   ( '"'!
>   | // nothing -- write error message
>   )
>   ;
>
> Given this input (quotes are included in the input):
>
> "sleep"
>
> The following error is generated:
>
> (After getting an antlr::TokenStreamRecognitionException)
> line 1:18: unexpected char: 's'

You have set the charVocabulary option?
http://www.antlr.org/doc/options.html#_bb14

Without it the ~ operator does not work as expected.

Cheers,

Ric


More information about the antlr-interest mailing list