xref: /aosp_15_r20/external/antlr/runtime/Python/tests/t040bug80.g (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1*16467b97STreehugger Robotlexer grammar t040bug80;
2*16467b97STreehugger Robotoptions {
3*16467b97STreehugger Robot  language = Python;
4*16467b97STreehugger Robot}
5*16467b97STreehugger Robot
6*16467b97STreehugger RobotID_LIKE
7*16467b97STreehugger Robot    : 'defined'
8*16467b97STreehugger Robot    | {False}? Identifier
9*16467b97STreehugger Robot    | Identifier
10*16467b97STreehugger Robot    ;
11*16467b97STreehugger Robot
12*16467b97STreehugger Robotfragment
13*16467b97STreehugger RobotIdentifier: 'a'..'z'+ ; // with just 'a', output compiles
14