git.droids-corp.org
/
protos
/
libecoli.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yaml: more examples
[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: or
20
children:
21
- type: seq
22
id: function
23
children:
24
- type: any
25
id: function_name
26
attr: a_identifier
27
- type: any
28
attr: a_open
29
- type: option
30
id: term_list
31
child:
32
type: seq
33
children:
34
- *term
35
- type: many
36
child:
37
type: seq
38
children:
39
- type: str
40
string: ","
41
- *term
42
- type: any
43
attr: a_close