xref: /aosp_15_r20/external/antlr/runtime/Python/tests/t034tokenLabelPropertyRef.g (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1*16467b97STreehugger Robotgrammar t034tokenLabelPropertyRef;
2*16467b97STreehugger Robotoptions {
3*16467b97STreehugger Robot  language = Python;
4*16467b97STreehugger Robot}
5*16467b97STreehugger Robot
6*16467b97STreehugger Robota: t=A
7*16467b97STreehugger Robot        {
8*16467b97STreehugger Robot            print $t.text
9*16467b97STreehugger Robot            print $t.type
10*16467b97STreehugger Robot            print $t.line
11*16467b97STreehugger Robot            print $t.pos
12*16467b97STreehugger Robot            print $t.channel
13*16467b97STreehugger Robot            print $t.index
14*16467b97STreehugger Robot            #print $t.tree
15*16467b97STreehugger Robot        }
16*16467b97STreehugger Robot    ;
17*16467b97STreehugger Robot
18*16467b97STreehugger RobotA: 'a'..'z';
19*16467b97STreehugger Robot
20*16467b97STreehugger RobotWS  :
21*16467b97STreehugger Robot        (   ' '
22*16467b97STreehugger Robot        |   '\t'
23*16467b97STreehugger Robot        |  ( '\n'
24*16467b97STreehugger Robot            |	'\r\n'
25*16467b97STreehugger Robot            |	'\r'
26*16467b97STreehugger Robot            )
27*16467b97STreehugger Robot        )+
28*16467b97STreehugger Robot        { $channel = HIDDEN }
29*16467b97STreehugger Robot    ;
30*16467b97STreehugger Robot
31