[antlr-interest] No match

Micheal J open.zone at virgin.net
Sat May 26 18:45:19 PDT 2007


You could start by making the rule non-optional.
 
    code:    (ruleA | ruleB ... ruleD)+ ;
 
When you say the parser continues and ends, what exactly do you mean?.
 
Micheal
 

-----------------------
The best way to contact me is via the list/forum. My time is very limited. 

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Jason Hocker
Sent: 27 May 2007 02:38
To: antlr-interest at antlr.org
Subject: [antlr-interest] No match



We have a rule like: 

code: (ruleA | ruleB | ruleC | ruleD)*; 

So if we try to parse code that is wrong... it won't match any of these
rules, and the parser continues and end. 

How can we better implement error handling? 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070527/a9d4f545/attachment-0001.html 


More information about the antlr-interest mailing list