[antlr-interest] plugin, ITokenScanner, nextToken --> SWT BUG

elekis elekis at gmail.com
Thu Apr 10 02:12:03 PDT 2008


Gavin Lambert a écrit :
> At 19:57 10/04/2008, elekis wrote:
> >Yes I run under windows.  but is it in eclipse or in antlr that I
> >have to patch??
>
> You don't have to patch anything.  Having CRLF line terminators is 
> perfectly normal, and your lexer deals with it properly anyway.  So 
> what's the problem?
>
The prob is that I try to make a eclipse plugn based on antl and he bugs 
on this 2lines

FROM flksjdfl IMPORT lfskjdflk;
FROM lskfjlskj IMPORT lkdfjsl;

and I don't know why lexer see two \n at the end of the first line.
 But if I have

FROM flksjdfl IMPORT lfskjdflk;

FROM lskfjlskj IMPORT lkdfjsl;


he see Four backslash n . funny thing.

there is my code

the java code : http://paste.ubuntu-nl.org/62701/
the  lexer   http://paste.ubuntu-nl.org/62702/

thanks a lot

a++




More information about the antlr-interest mailing list