File: option.g

package info (click to toggle)
yapps2 2.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 408 kB
  • sloc: python: 1,016; sh: 24; makefile: 13
file content (17 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

%%

parser test_option:
    ignore: r'\s+'
    token a: 'a'
    token b: 'b'
    token EOF: r'$'

    rule test_brackets: a [b] EOF

    rule test_question_mark: a b? EOF

%%

# The generated code for test_brackets and test_question_mark should
# be the same.