[antlr-interest] Manually failing a match

Gerald B. Rosenberg gbr at newtechlaw.com
Wed Mar 14 10:41:20 PDT 2007

At 08:56 AM 3/14/2007, Mark Bednarczyk wrote:
>I need to manually fail a rule that has already been matched.

Cannot fail a rule after the match has been made.  Use a validating 
semantic predicate to selectively fail the rule during the 
match.  You may need to catch and ignore a SemanticException on the 
rule when it is failed.

Gerald B. Rosenberg, Esq.
260 Sheridan Ave., Suite 208
Palo Alto, CA  94306-2009

650.325.2100  (office)  /  650.703.1724  (cell)
650.325.2107  (facsimile)


CONFIDENTIALITY NOTICE:  This email message (including any 
attachments) is being sent by an attorney, is for the sole use of the 
intended recipient, and may contain confidential and privileged 
information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended recipient, 
please contact the sender immediately by reply email and delete all 
copies of this message and any attachments without retaining a copy.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070314/89a5ff9c/attachment.html 

More information about the antlr-interest mailing list