on 140ac0e help sign in
38 lines 621 B history raw
1### `++sfix`
3Discard second rule
5Parsing composer: connects `++edge`s `vex` with two subsequent `++rule`s returning the
6result of the first and discarding the result of the second.
8Accepts
9-------
11`a` is the result of parsing the first `++rule`.
13`b` is the result of of parsing the second `++rule`.
15Produces
16--------
20Source
21------
23 ++ sfix :: discard second rule
24 ~/ %sfix
25 (comp |*({a/* b/*} a))
28Examples
29--------
31 ~zod/try=> `@t`(scan "him%" ;~(sfix sym cen))
32 'him'
33 ~zod/try=> (scan "10+++" ;~(sfix dem (star lus)))
34 q=10
38***