Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support asscii classes #9

Closed
hedhyw opened this issue Jun 14, 2022 · 0 comments · Fixed by #32
Closed

Support asscii classes #9

hedhyw opened this issue Jun 14, 2022 · 0 comments · Fixed by #32
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@hedhyw
Copy link
Owner

hedhyw commented Jun 14, 2022

[[:alnum:]]    alphanumeric (== [0-9A-Za-z])
[[:alpha:]]    alphabetic (== [A-Za-z])
[[:ascii:]]    ASCII (== [\x00-\x7F])
[[:blank:]]    blank (== [\t ])
[[:cntrl:]]    control (== [\x00-\x1F\x7F])
[[:digit:]]    digits (== [0-9])
[[:graph:]]    graphical (== [!-~] == [A-Za-z0-9!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])
[[:lower:]]    lower case (== [a-z])
[[:print:]]    printable (== [ -~] == [ [:graph:]])
[[:punct:]]    punctuation (== [!-/:-@[-`{-~])
[[:space:]]    whitespace (== [\t\n\v\f\r ])
[[:upper:]]    upper case (== [A-Z])
[[:word:]]     word characters (== [0-9A-Za-z_])
[[:xdigit:]]   hex digit (== [0-9A-Fa-f])

They can be defined as [:lower:] in TokenClass.

@hedhyw hedhyw added the enhancement New feature or request label Jun 14, 2022
@hedhyw hedhyw assigned hedhyw and thaithimyduyen and unassigned hedhyw Jun 14, 2022
@hedhyw hedhyw added the good first issue Good for newcomers label Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants