This commit is contained in:
2023-12-08 17:10:35 -08:00
parent d5ee7282e9
commit d9980e3b33
10 changed files with 1844 additions and 0 deletions

9
08/test.pl Normal file
View File

@@ -0,0 +1,9 @@
% cat input.txt \
% | sed -r -e 's~^(.*) = \((.*), (.*)\)$~\L\1 to \L\2-\L\3.~' \
% | sed -r -e 's~^([RL]+)$~:- op(700, xfx, to).\ndirection("\L\1").~' > input.pl
:- op(700, xfx, to).
direction("llr").
aaa to bbb-bbb.
bbb to aaa-zzz.
zzz to zzz-zzz.