Skip to main content

module lang::std::ASCII

rascal-0.40.16

Character classes commonly known in the ASCII set.

Usage

import lang::std::ASCII;

Description

syntax Ascii

lexical Ascii = [\a00-\a7f];

syntax Alnum

lexical Alnum = [A-Z a-z 0-9];

syntax Alpha

lexical Alpha = [A-Z a-z];

syntax Upper

lexical Upper = [A-Z];

syntax Lower

lexical Lower = [a-z];

syntax Blank

lexical Blank = [\ \t];

syntax Ctrl

lexical Ctrl = [\a00-\a1f \a7f];

syntax Digit

lexical Digit = [0-9];

syntax Graph

lexical Graph = [~-!];

syntax HexNumber

lexical HexNumber = [A-F a-f 0-9];

syntax Print

lexical Print = [\ ~-!];

syntax Punt

lexical Punt = [!-/ :-@ \[-~];

syntax Space

lexical Space = [\t \n \a0B \a0C \r \ ];