File: option.g

package info (click to toggle)
yapps2 2.1.1-17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 256 kB
  • ctags: 149
  • sloc: python: 1,008; makefile: 58; sh: 14
file content (17 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (6)
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.