]> git.droids-corp.org - protos/libecoli.git/blobdiff - examples/yaml/test.yaml
add ecoli_editline and enhance yaml parser
[protos/libecoli.git] / examples / yaml / test.yaml
index 072fbce26976c7e5be02b58fb27b1147e7c1a8a2..56427660eb7e41f8d0a87103a43305621210786a 100644 (file)
@@ -1,16 +1,32 @@
-type: seq
-attrs:
-  toto: 1
-  titi: 2
-help: Say hello to someone
+type: or
 children:
-- type: str
-  string: hello
-- type: or
-  id: name
-  help: Name of the person to greet
+- type: seq
+  id: hello
+  help: Say hello to someone
   children:
   - type: str
-    string: john
+    string: hello
+  - type: or
+    id: name
+    help: Name of the person to greet
+    children:
+    - type: str
+      string: john
+    - type: str
+      string: mike
+- type: seq
+  id: goodbye
+  help: Say good bye to someone
+  children:
+  - type: str
+    string: good
   - type: str
-    string: mike
+    string: bye
+  - type: or
+    id: name
+    help: Name of the person to greet
+    children:
+    - type: str
+      string: mary
+    - type: str
+      string: jessica