@@ -2,8 +2,8 @@
3Conditional composer
3Conditional composer
5−Parsing composer: connects the [`++edge`]() `vex` with the subsequent [`++rule`]() `sab`
5+Parsing composer: connects the `++edge` `vex` with the subsequent `++rule` `sab`
6−as an optional suffix, using [gate]() `raq` to compose or reject its
6+as an optional suffix, using gate `raq` to compose or reject its
7result. If there is no suffix, or if the suffix fails to be composed
7result. If there is no suffix, or if the suffix fails to be composed
8with the current result, the current result is produced. Used to map a
8with the current result, the current result is produced. Used to map a
9group of rules to a specified output.
9group of rules to a specified output.
@@ -11,25 +11,25 @@ group of rules to a specified output.
14−`raq` is a [gate]().
14+`raq` is a gate.
16−`sab` is a [rule]().
16+`sab` is a rule.
18−`vex` is an [edge]().
18+`vex` is an edge.
23−A [`++rule`]().
23+A `++rule`.
28 ++ bend :: conditional comp
28 ++ bend :: conditional comp
30− |* raq=_|*([a=* b=*] [~ u=[a b]])
30+ |* raq/_|*({a/* b/*} [~ u=[a b]])
32− |* [vex=edge sab=_rule]
32+ |* {vex/edge sab/rule}
35 =+ yit=(sab q.u.q.vex)
35 =+ yit=(sab q.u.q.vex)
@@ -45,18 +45,18 @@ Source
48− ~zod/try=> (;~((bend |=([a=char b=char] ?.(=(a b) ~ (some +(a))))) prn prn) [1 1] "qs")
48+ ~zod/try=> (;~((bend |=([a/char b/char] ?.(=(a b) ~ (some +(a))))) prn prn) [1 1] "qs")
49 [p=[p=1 q=3] q=[~ u=[p=~~q q=[p=[p=1 q=2] q="s"]]]]
49 [p=[p=1 q=3] q=[~ u=[p=~~q q=[p=[p=1 q=2] q="s"]]]]
50− ~zod/try=> (;~((bend |=([a=char b=char] ?.(=(a b) ~ (some +(a))))) prn prn) [1 1] "qqq")
50+ ~zod/try=> (;~((bend |=([a/char b/char] ?.(=(a b) ~ (some +(a))))) prn prn) [1 1] "qqq")
51 [p=[p=1 q=3] q=[~ u=[p=~~r q=[p=[p=1 q=3] q="q"]]]]
51 [p=[p=1 q=3] q=[~ u=[p=~~r q=[p=[p=1 q=3] q="q"]]]]
52− ~zod/try=> (scan "aa" ;~((bend |=([a=char b=char] ?.(=(a b) ~ (some +(a))))) prn prn))
52+ ~zod/try=> (scan "aa" ;~((bend |=([a/char b/char] ?.(=(a b) ~ (some +(a))))) prn prn))
54− ~zod/try=> (scan "ba" ;~((bend |=([a=char b=char] ?.(=(a b) ~ (some +(a))))) prn prn))
54+ ~zod/try=> (scan "ba" ;~((bend |=([a/char b/char] ?.(=(a b) ~ (some +(a))))) prn prn))
57− ~zod/try=> `(unit ,@tas)`(scan "" ;~((bend) (easy ~) sym))
57+ ~zod/try=> `(unit @tas)`(scan "" ;~((bend) (easy ~) sym))
59− ~zod/try=> `(unit ,@tas)`(scan "sep" ;~((bend) (easy ~) sym))
59+ ~zod/try=> `(unit @tas)`(scan "sep" ;~((bend) (easy ~) sym))