on beeb398 help sign in
41 lines 527 B history raw
1### `++ifix`
3Infix
5Parser modifier: surround with pair of `++rule`s, the output of which is
6discarded.
8Accepts
9-------
11`fel` is a pair of `++rule`s.
13`hof` is a `++rule`.
15Produces
16--------
18A `++rule`.
20Source
21------
23 ++ ifix
24 |* {fel/{rule rule} hof/rule}
25 ~! +<
26 ~! +<:-.fel
27 ~! +<:+.fel
28 ;~(pfix -.fel ;~(sfix hof +.fel))
29 ::
31Examples
32--------
34 ~zod/try=> (scan "-40-" (ifix [hep hep] dem))
35 q=40
36 ~zod/try=> (scan "4my4" (ifix [dit dit] (star alf)))
37 "my"
41***