fix yaml cond example
[protos/libecoli.git] / examples / parse-yaml / cond.yaml
1 type: re_lex
2 patterns:
3 - pattern: "[_a-zA-Z][._a-zA-Z0-9]*"
4   keep: true
5   attr: a_identifier
6 - pattern: "\\("
7   keep: true
8   attr: a_open
9 - pattern: "\\)"
10   keep: true
11   attr: a_close
12 - pattern: ","
13   keep: true
14 - pattern: "[   ]+"
15   keep: false
16 child:
17   &term
18   id: term
19   type: seq
20   children:
21   - type: any
22     id: function_name
23     attr: a_identifier
24   - type: any
25     attr: a_open
26   - type: option
27     id: term_list
28     child:
29       type: seq
30       children:
31       - *term
32       - type: many
33         child:
34           type: seq
35           children:
36           - type: str
37             string: ","
38           - *term
39   - type: any
40     attr: a_close