2title = "4g: Parsing (Outside Caller)"
10Parse a cord with a given `++rule` and crash if the `++cord` isn't entirely
21The value of the parse result, or crash.
26 ++ rash |*({naf/@ sab/rule} (scan (trip naf) sab)) ::
32 > (rash 'I was the world in which I walked, and what I saw' (star (shim 0 200)))
33 "I was the world in which I walked, and what I saw"
35 > (rash 'abc' (just 'a'))
40 > (rash 'abc' (jest 'abc'))
43 > (rash 'abc' (jest 'ab'))
55Parse an atom with a given rule and produce null if the cord isn't
66The value of the parse result, or null.
71 ++ rush |*({naf/@ sab/rule} (rust (trip naf) sab))
77 > (rush 'I was the world in which I walked, and what I saw' (star (shim 0 200)))
78 [~ "I was the world in which I walked, and what I saw"]
80 > (rush 'abc' (just 'a'))
83 > (rush 'abc' (jest 'abc'))
86 > (rush 'abc' (jest 'ac'))
89 > (rush 'abc' (jest 'ab'))
99Parse a `++tape` with a given `++rule` and produce null if the `++tape` isn't
115 ++ rust |* {los/tape sab/rule}
116 =+ vex=((full sab) [[1 1] los])
117 ?~(q.vex ~ [~ u=p.u.q.vex])
123 > (rust "I was the world in which I walked, and what I saw" (star (shim 0 200)))
124 [~ "I was the world in which I walked, and what I saw"]
126 > (rust "Or heard or felt came not but from myself;" (star (shim 0 200)))
127 [~ "Or heard or felt came not but from myself;"]
129 > (rust "And there I found myself more truly and more strange." (jest 'And there I'))
139Parse a `++tape` with a given `++rule` and crash if the `++tape` isn't entirely
150Either a `++tape` or a crash.
155 ++ scan |* {los/tape sab/rule}
156 =+ vex=((full sab) [[1 1] los])
158 ~_ (show [%m '{%d %d}'] p.p.vex q.p.vex ~)
159 ~|('syntax-error' !!)
166 > (scan "I was the world in which I walked, and what I saw" (star (shim 0 200)))
167 "I was the world in which I walked, and what I saw"
169 > (scan "Or heard or felt came not but from myself;" (star (shim 0 200)))
170 "Or heard or felt came not but from myself;"
172 > (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