blob: 6cb4e10fb14bcf8318cf6e38474cbce667131f69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/// ungrammar for ungrammar
Grammar =
Node *
Node =
name:'ident' '=' Rule
Rule =
'ident'
| 'token_ident'
| Rule *
| Rule ( '|' Rule) *
| Rule '?'
| Rule '*'
| '(' Rule ')'
| label:'ident' ':'
|