File: t041parameters.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 (16 lines) | stat: -rw-r--r-- 233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
grammar t041parameters;
options {
  language = Python3;
}

a[arg1, arg2] returns [l]
    : A+ EOF
        { 
            l = ($arg1, $arg2) 
            $arg1 = "gnarz"
        }
    ;

A: 'a'..'z';

WS: ' '+  { $channel = HIDDEN };