[antlr-interest] Linux -> windows, execution problem

Gavin Lambert antlr at mirality.co.nz
Thu Oct 30 00:44:03 PDT 2008


At 23:20 29/10/2008, Sébastien Laigre wrote:
>I have a program (which works with antlr 2.7.6) 
>which works very well on linux (kubuntu 8.04) 
>but not on windows. In fact, lexer and parsers 
>are well generated (on both platforms), but when 
>I execute on windows, the program handle an 
>exception when it encounters the first char ! Then it stops...
>For example if I try to analyze "DT NN.", it 
>writes "exception : unexpected char 'D' "
>I have defined dt : "DT" in the parser but it 
>doesn't recognize...

Have you defined your newline/whitespace rules to 
handle the differences between EOLs in Linux vs. Windows?



More information about the antlr-interest mailing list