2title = "4g: Parsing (Outside Caller)"
11Parse a cord with a given `++rule` and crash if the `++cord` isn't entirely
22The value of the parse result, or crash.
27 ++ rash |*({naf/@ sab/rule} (scan (trip naf) sab)) ::
33 > (rash 'I was the world in which I walked, and what I saw' (star (shim 0 200)))
34 "I was the world in which I walked, and what I saw"
36 > (rash 'abc' (just 'a'))
41 > (rash 'abc' (jest 'abc'))
44 > (rash 'abc' (jest 'ab'))
56Parse an atom with a given rule and produce null if the cord isn't
67The value of the parse result, or null.
72 ++ rush |*({naf/@ sab/rule} (rust (trip naf) sab))
78 > (rush 'I was the world in which I walked, and what I saw' (star (shim 0 200)))
79 [~ "I was the world in which I walked, and what I saw"]
81 > (rush 'abc' (just 'a'))
84 > (rush 'abc' (jest 'abc'))
87 > (rush 'abc' (jest 'ac'))
90 > (rush 'abc' (jest 'ab'))
100Parse a `++tape` with a given `++rule` and produce null if the `++tape` isn't
116 ++ rust |* {los/tape sab/rule}
117 =+ vex=((full sab) [[1 1] los])
118 ?~(q.vex ~ [~ u=p.u.q.vex])
124 > (rust "I was the world in which I walked, and what I saw" (star (shim 0 200)))
125 [~ "I was the world in which I walked, and what I saw"]
127 > (rust "Or heard or felt came not but from myself;" (star (shim 0 200)))
128 [~ "Or heard or felt came not but from myself;"]
130 > (rust "And there I found myself more truly and more strange." (jest 'And there I'))
140Parse a `++tape` with a given `++rule` and crash if the `++tape` isn't entirely
151Either a `++tape` or a crash.
156 ++ scan |* {los/tape sab/rule}
157 =+ vex=((full sab) [[1 1] los])
159 ~_ (show [%m '{%d %d}'] p.p.vex q.p.vex ~)
160 ~|('syntax-error' !!)
167 > (scan "I was the world in which I walked, and what I saw" (star (shim 0 200)))
168 "I was the world in which I walked, and what I saw"
170 > (scan "Or heard or felt came not but from myself;" (star (shim 0 200)))
171 "Or heard or felt came not but from myself;"
173 > (scan "And there I found myself more truly and more strange." (jest 'And there I'))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list