[antlr-interest] Newline not recognized

Gavin Lambert antlr at mirality.co.nz
Tue Jan 15 00:04:45 PST 2008


At 07:55 15/01/2008, Cory Isaacson wrote:
>One follow on question:
>
>My message format is name/value pairs like this:
>
>\nLabel1=value
>\nLabel2=value
>
>However, the value can contain an entire SQL statement, which can 
>of course have single, double quotes, etc. What is a good way to 
>recognize the value, but not so broadly that the lexer token 
>tries to recognize the whole message?

With that sort of input I wouldn't even bother with a formal 
parser -- that's what String.Split was built for.



More information about the antlr-interest mailing list