[antlr-interest] \0 tokenising ?

Robert Collins robertc at robertcollins.net
Sat Aug 16 00:35:14 PDT 2008


Hi, I have a file I want to parse, which contains \0 - ASCII NULL
characters as delimiters. I can't seem to get antlr3 to recognise this -
I always get:

 1:1: Tokens : ( ASCIINULL | MINUS | WHOLE | CRC32 | HEADER | NL |
NUMENTRIES | NOWHITESPACE ); at offset 53, near char(00) :

I have tried:
ASCIINULL: '\0'; 
ASCIINULL: '\\0';
ASCIINULL: 0; // errors

Any guidance on this?

-Rob


-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080816/b9d44241/attachment.bin 


More information about the antlr-interest mailing list