fix yaml cond example
authorOlivier Matz <zer0@droids-corp.org>
Thu, 21 Mar 2019 19:23:44 +0000 (20:23 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 21 Mar 2019 19:25:01 +0000 (20:25 +0100)
examples/parse-yaml/cond.yaml

index 49483ab..eabfa53 100644 (file)
@@ -16,28 +16,25 @@ patterns:
 child:
   &term
   id: term
-  type: or
+  type: seq
   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