Maybe added support for other alphabets
no support for roman numerals like Ⅺ, so please dont use them :)
This commit is contained in:
@ -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 {
|
||||||
_
|
_
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
Weights: 10,10
|
Weights: 10,10
|
||||||
Sets: {a,b},{a, 😵}
|
Sets: {a,b},{a, 㐀, 豈}
|
||||||
@ -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, 🙏}])
|
||||||
|
|||||||
Reference in New Issue
Block a user