[antlr-interest] Strange problem with syntactic predicates

Jim Idle jimi at temporal-wave.com
Sun Jul 29 08:34:41 PDT 2007


Apart from the interpreter not supporting predicates, your grammar is
also predicting 'name' and 'name', once with a predicate and once
without J

 

Jim

 

From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Ali Salehi
Sent: Sunday, July 29, 2007 5:10 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Strange problem with syntactic predicates

 

Hi all,
 I have a very simple grammar [only two lines] below (ErrGenerator.g) :

grammar ErrGenerator;
start : ('namely')=>'namely' | ('name')=>'name' | 'name';



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070729/21fd0252/attachment.html 


More information about the antlr-interest mailing list