yaml: more examples
[protos/libecoli.git] / examples / parse-yaml / cross.yaml
1 # matches "x", "x + x", "x + x + x", ...
2 &term
3 id: term
4 type: or
5 children:
6 - type: seq
7   children:
8   - &value
9     id: value
10     type: str
11     string: x
12   - id: operator
13     type: str
14     string: +
15   - *term
16 - *value