2021-01-29 16:37:45 -08:00
|
|
|
{
|
|
|
|
|
"name": "unicode_classes",
|
|
|
|
|
|
|
|
|
|
"extras": [
|
|
|
|
|
{"type": "PATTERN", "value": "\\s"}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"rules": {
|
2021-02-17 13:29:30 -08:00
|
|
|
"program": {
|
|
|
|
|
"type": "REPEAT",
|
|
|
|
|
"content": {
|
|
|
|
|
"type": "CHOICE",
|
|
|
|
|
"members": [
|
|
|
|
|
{"type": "SYMBOL", "name": "lower"},
|
|
|
|
|
{"type": "SYMBOL", "name": "upper"},
|
|
|
|
|
{"type": "SYMBOL", "name": "math_sym"}
|
|
|
|
|
]
|
|
|
|
|
}
|
2021-01-29 16:37:45 -08:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"lower": {
|
|
|
|
|
"type": "PATTERN",
|
|
|
|
|
"value": "\\p{Ll}\\p{L}*"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"upper": {
|
|
|
|
|
"type": "PATTERN",
|
|
|
|
|
"value": "\\p{Lu}\\p{L}*"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"math_sym": {
|
|
|
|
|
"type": "PATTERN",
|
|
|
|
|
"value": "\\p{Sm}+"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|