Handbook
Glossary
integer-parser ( -- parser )
Vocabulary
peg
.
parsers
Inputs
None
Outputs
parser
a parser
Word description
Returns a parser that matches an integer composed of digits, as defined by the
digit-parser
word.
See also
digit-parser
,
string-parser
Definition
USING:
math.parser
peg
unicode
;
IN:
peg.parsers
:
integer-parser
( -- parser )
[
digit?
]
satisfy
repeat1
[
string>number
]
action
;