From cd9f3bc3f3ecb04eaee42c65880711bd35c7e71b Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Sat, 3 Sep 2022 16:07:58 +1200 Subject: Able to parse Thue code --- src/thue/thue.cr | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/thue/thue.cr (limited to 'src/thue/thue.cr') diff --git a/src/thue/thue.cr b/src/thue/thue.cr new file mode 100644 index 0000000..9c22b96 --- /dev/null +++ b/src/thue/thue.cr @@ -0,0 +1,7 @@ +module Thue + # Allow matching empty patterns, handle during parsing + R_NORMAL_RULE = /^(.*)::=(.*)$/ + R_INPUT_RULE = /^(.*)::=:::$/ + R_OUTPUT_RULE = /^(.*)::=~(.*)$/ +end + -- cgit v1.2.1