git.droids-corp.org
/
protos
/
libecoli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c581395
)
fix yaml cond example
author
Olivier Matz
<zer0@droids-corp.org>
Thu, 21 Mar 2019 19:23:44 +0000
(20:23 +0100)
committer
Olivier Matz
<zer0@droids-corp.org>
Thu, 21 Mar 2019 19:25:01 +0000
(20:25 +0100)
examples/parse-yaml/cond.yaml
patch
|
blob
|
history
diff --git
a/examples/parse-yaml/cond.yaml
b/examples/parse-yaml/cond.yaml
index
49483ab
..
eabfa53
100644
(file)
--- a/
examples/parse-yaml/cond.yaml
+++ b/
examples/parse-yaml/cond.yaml
@@
-16,28
+16,25
@@
patterns:
child:
&term
id: term
child:
&term
id: term
- type:
or
+ type:
seq
children:
children:
- - type: seq
- id: function
- children:
- - type: any
- id: function_name
- attr: a_identifier
- - type: any
- attr: a_open
- - type: option
- id: term_list
- child:
- type: seq
- children:
- - *term
- - type: many
- child:
- type: seq
- children:
- - type: str
- string: ","
- - *term
- - type: any
- attr: a_close
+ - type: any
+ id: function_name
+ attr: a_identifier
+ - type: any
+ attr: a_open
+ - type: option
+ id: term_list
+ child:
+ type: seq
+ children:
+ - *term
+ - type: many
+ child:
+ type: seq
+ children:
+ - type: str
+ string: ","
+ - *term
+ - type: any
+ attr: a_close