Character Classes
A “character” class describes a set of bytes.
Character classes may be named using definitions like this:
def $x = CHAR_CLASS
A character class may be used as a parser which matches a single byte,
using the construct $[ CHAR_CLASS ]
. Named character classes,
such as $x
or $any
may be used directly as a byte parser
(i.e.,
writing $[ $x ]
is the same as just writing $x
in a parser context).
byte literal |
Match the literal exactly.
For example |
|
Match one of |
|
Match the byte corresponding to the value of |
|
Match any byte matched by character class |
|
Match any byte |
|
Match bytes in the given range, inclusive |
|
Match bytes less than or equal to |
|
Match bytes greater than or equal to |
|
Match byte that either match |
|
Match bytes that are in |
|
Match bytes that do not match chararcter class |