Expand tests for unicode property escapes

This commit is contained in:
Max Brunsfeld 2021-02-17 13:29:30 -08:00
parent 6132a10b1c
commit 9abad258c3
2 changed files with 38 additions and 12 deletions

View file

@ -1,9 +1,32 @@
============================
Letters
======================
===============
Uppercase words
===============
Aბㄱ
Δბㄱ Ψ Ɓƀ Ƒ Ɣ Śřř
---
(expression (upper))
(program
(upper) (upper) (upper) (upper) (upper) (upper))
================
Lowercase words
================
śś ťť ßß
---
(program
(lower) (lower) (lower))
================
Math symbols
================
≺ ≼ ≠ ≝ ⨔∑
---
(program
(math_sym) (math_sym) (math_sym) (math_sym) (math_sym))

View file

@ -6,13 +6,16 @@
],
"rules": {
"expression": {
"type": "CHOICE",
"members": [
{"type": "SYMBOL", "name": "lower"},
{"type": "SYMBOL", "name": "upper"},
{"type": "SYMBOL", "name": "math_sym"}
]
"program": {
"type": "REPEAT",
"content": {
"type": "CHOICE",
"members": [
{"type": "SYMBOL", "name": "lower"},
{"type": "SYMBOL", "name": "upper"},
{"type": "SYMBOL", "name": "math_sym"}
]
}
},
"lower": {