range ( min max -- parser )


Vocabulary
peg

Inputs
mina character
maxa character


Outputs
parsera parser


Word description
Returns a parser that matches a single character that lies within the range of characters given, inclusive.

Examples
: digit ( -- parser ) CHAR: 0 CHAR: 9 range ;


Definition