diff options
| author | Matthew Hall <hallmatthew314@gmail.com> | 2022-09-03 16:07:58 +1200 |
|---|---|---|
| committer | Matthew Hall <hallmatthew314@gmail.com> | 2022-09-03 16:07:58 +1200 |
| commit | cd9f3bc3f3ecb04eaee42c65880711bd35c7e71b (patch) | |
| tree | 48d76a9bfaaa7959de7a9689277b8e01e78286b1 /src/thue/thue.cr | |
| parent | 95e20a4662c96372b62441a4c598df0f29851834 (diff) | |
Able to parse Thue code
Diffstat (limited to 'src/thue/thue.cr')
| -rw-r--r-- | src/thue/thue.cr | 7 |
1 files changed, 7 insertions, 0 deletions
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 + |
