[antlr-interest] Rule question.

Sohail Somani sohail at taggedtype.net
Sun Apr 9 15:51:40 PDT 2006


On Sun, 2006-04-09 at 22:17 +0200, Gevik babakhani wrote:
> A : ‘a’;
> B : ‘b’;
> C ; ‘c’;

aOrBOrC : A|B|C;
abc : aOrBOrC (aOrBOrC (aOrBOrC)?)? ; 

this will match bca acb, etc (unless I'm totally high, but I don't think
I had enough orange juice to have that happen)



More information about the antlr-interest mailing list