File: t034tokenLabelPropertyRef.g

package info (click to toggle)
python3-antlr3 3.5.2-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,580 kB
  • sloc: python: 14,246; makefile: 32; sh: 13
file content (30 lines) | stat: -rw-r--r-- 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
grammar t034tokenLabelPropertyRef;
options {
  language = Python3;
}

a: t=A
        {
            print($t.text)
            print($t.type)
            print($t.line)
            print($t.pos)
            print($t.channel)
            print($t.index)
            #print($t.tree)
        }
    ;

A: 'a'..'z';

WS  :
        (   ' '
        |   '\t'
        |  ( '\n'
            |	'\r\n'
            |	'\r'
            )
        )+
        { $channel = HIDDEN }
    ;