From eb8455b84d2296c900420f86bba19914091dac49 Mon Sep 17 00:00:00 2001 From: elvis Date: Thu, 3 Jul 2025 19:50:12 +0200 Subject: [PATCH] Maybe added support for other alphabets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no support for roman numerals like Ⅺ, so please dont use them :) --- src/rsprocess/grammar.lalrpop | 3 ++- testing/first.experiment | 2 +- testing/first.system | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/rsprocess/grammar.lalrpop b/src/rsprocess/grammar.lalrpop index 49fcef4..6c7eeba 100644 --- a/src/rsprocess/grammar.lalrpop +++ b/src/rsprocess/grammar.lalrpop @@ -21,7 +21,8 @@ grammar(translator: &mut Translator); match { r"[0-9]+" => NUMBER } 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 { _ } diff --git a/testing/first.experiment b/testing/first.experiment index 54e99a2..0b289d6 100644 --- a/testing/first.experiment +++ b/testing/first.experiment @@ -1,2 +1,2 @@ Weights: 10,10 -Sets: {a,b},{a, 😵} \ No newline at end of file +Sets: {a,b},{a, 㐀, 豈} \ No newline at end of file diff --git a/testing/first.system b/testing/first.system index e99d558..8d16057 100644 --- a/testing/first.system +++ b/testing/first.system @@ -1,4 +1,4 @@ -Environment: [x = {a}.🐶, 🐶 =({a}.nill + {b}.nill)] +Environment: [x = {a}.ñ, ñ =({a}.nill + {b}.nill)] Initial Entities: {a, b} 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, 🙏}])