| 1 |
|
| 2 |
%% |
| 3 |
|
| 4 |
parser test_option: |
| 5 |
ignore: r'\s+' |
| 6 |
token a: 'a' |
| 7 |
token b: 'b' |
| 8 |
token EOF: r'$' |
| 9 |
|
| 10 |
rule test_brackets: a [b] EOF |
| 11 |
|
| 12 |
rule test_question_mark: a b? EOF |
| 13 |
|
| 14 |
%% |
| 15 |
|
| 16 |
# The generated code for test_brackets and test_question_mark should |
| 17 |
# be the same. |