Maybe added support for other alphabets

no support for roman numerals like Ⅺ, so please dont use them :)
This commit is contained in:
elvis
2025-07-03 19:50:12 +02:00
parent d419ebaafd
commit eb8455b84d
3 changed files with 5 additions and 4 deletions

View File

@ -21,7 +21,8 @@ grammar(translator: &mut Translator);
match { match {
r"[0-9]+" => NUMBER r"[0-9]+" => NUMBER
} else { } else {
r"([[:alpha:]]|\p{Emoji})([[:word:]]|\p{Emoji})*" => WORD // r"([[:alpha:]]|\p{Emoji})([[:word:]]|\p{Emoji})*" => WORD
r"(\p{L}|\p{Emoji})(\p{L}|\p{Emoji}|\p{Dash}|\p{N})*" => WORD
} else { } else {
_ _
} }

View File

@ -1,2 +1,2 @@
Weights: 10,10 Weights: 10,10
Sets: {a,b},{a, 😵} Sets: {a,b},{a, 㐀, 豈}

View File

@ -1,4 +1,4 @@
Environment: [x = {a}.🐶, 🐶 =({a}.nill + {b}.nill)] Environment: [x = {a}.ñ, ñ =({a}.nill + {b}.nill)]
Initial Entities: {a, b} Initial Entities: {a, b}
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nil)] Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nil)]
Reactions: ([r: {a,b}, i: {c}, p: {b, 😵}]) Reactions: ([r: {a,b}, i: {c}, p: {b, ñ, 㐀, 豈, a12-3, 🙏}])