Ben Gruver | 324c464 | 2011-11-15 16:02:09 -0800 | [diff] [blame] | 1 | lexer grammar t040bug80; |
2 | options { | ||||
3 | language = Python; | ||||
4 | } | ||||
5 | |||||
6 | ID_LIKE | ||||
7 | : 'defined' | ||||
8 | | {False}? Identifier | ||||
9 | | Identifier | ||||
10 | ; | ||||
11 | |||||
12 | fragment | ||||
13 | Identifier: 'a'..'z'+ ; // with just 'a', output compiles |