any-char-parser ( -- parser ) (original) (raw)
Vocabulary
parser-combinators
Inputs
None
Outputs
parser | a parser object |
---|
Word description
Return a parser that consumes a single value from the input string. The value consumed is the result of the parse.
Examples
USING: lists.lazy parser-combinators prettyprint ; "foo" any-char-parser parse-1 .
102
Definition
USING: generalizations kernel lazy ;
: any-char-parser ( -- parser )
[ [ drop t ] satisfy ] 0 ncurry ;