issues
search
SKalt
/
brzozowski-ts
Typescript compile-time recognition of regular languages
BSD 3-Clause "New" or "Revised" License
8
stars
0
forks
source link
[Feature]: support common char class escapes
#5
Closed
SKalt
closed
1 week ago
SKalt
commented
3 weeks ago
Rationale
Support:
[x]
\s
[x]
\d
[x]
\w
[ ]
\S
[ ]
\D
[ ]
\W
Actual behavior
Should match:
\s
=> space
\d
=> digit
\w
=> word (alphanumeric + underscore)
\S
=> not space
\D
=> not digit
\W
=> not word
Rationale
Support:
\s
\d
\w
\S
\D
\W
Actual behavior
Should match:
\s
=> space\d
=> digit\w
=> word (alphanumeric + underscore)\S
=> not space\D
=> not digit\W
=> not word