playwith grammar

This commit is contained in:
Terence Parr 2012-08-05 09:51:52 -07:00
parent 717af9c371
commit 799b7afc1c
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
parser grammar T;
grammar T;
s : A | B ;
s : (A | B) ;
A : ('a'|'c');
B : 'b' ;