[antlr-interest] Help with lexical nondeterminism.

Phil Ritchie endigitalmind at yahoo.co.uk
Fri Apr 1 06:29:15 PST 2005


I have a file format thus:
 
----- START -----
----- END -----
 
I have successfully created a grammar and application that can parse this format. But if my file format becomes:
 
----- START -----
any Unicode character - i.e. ('\u0000'..'\uffff')+
----- END -----
 
I enter all kinds of nondeterminism. Could someone point me at a way of handling this? I can understand that my problem lies in not having a unique sequence that differentiates general text and the END banner.

Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050401/8f4774e2/attachment.html


More information about the antlr-interest mailing list