Handbook
Glossary
1token ( ch -- parser )
Vocabulary
peg
.
parsers
Inputs
ch
a character
Outputs
parser
a parser
Word description
Calls 1string on a character and returns a parser that matches that character.
Examples
USING: peg peg.parsers prettyprint ; "a" CHAR: a 1token parse .
"a"
See also
string-parser
Definition
USING:
peg
strings
;
IN:
peg.parsers
:
1token
( ch -- parser )
1string
token
;