antlr/tool/playground/T.g4

13 lines
103 B
Plaintext
Raw Normal View History

2015-05-23 03:03:28 +08:00
grammar T;
a
: 'b' #alt1
| 'c' #alt2
;
b : 'x' | 'y' {} ;
2015-05-30 05:10:08 +08:00
e : e '*' e
| 'foo'
;