Handbook
Glossary
name>class ( name -- class )
Vocabulary
regexp
.
parser
Inputs
name
an
object
Outputs
class
an
object
Definition
USING:
regexp.classes
strings
;
IN:
regexp.parser
:
name>class
( name -- class )
>string
simple
{
{
"lower"
letter-class
}
{
"upper"
LETTER-class
}
{
"alpha"
Letter-class
}
{
"ascii"
ascii-class
}
{
"digit"
digit-class
}
{
"alnum"
alpha-class
}
{
"punct"
punctuation-class
}
{
"graph"
java-printable-class
}
{
"blank"
non-newline-blank-class
}
{
"cntrl"
control-character-class
}
{
"xdigit"
hex-digit-class
}
{
"space"
java-blank-class
}
}
[
unicode-class
]
at-error
;