1
0
Fork 0
mirror of https://github.com/Lyxal/Keta.git synced 2024-08-14 23:53:13 +00:00

Update chainify.py

This commit is contained in:
JonoCode9374 2019-12-26 21:20:25 +11:00 committed by GitHub
parent 04e05f739a
commit 02c7c5a1de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,4 +95,13 @@ for exp in exprs:
elif pattern == "212": elif pattern == "212":
print(fns[2] + "(" + fns[0] + "(L, " + fns[1] + "(R*)), R&)") print(fns[2] + "(" + fns[0] + "(L, " + fns[1] + "(R*)), R&)")
elif pattern == "220":
print(fns[1] + "(" + fns[0] + "(L, R), " + fns[2] + ")")
elif pattern == "221":
print(fns[1] + "(" + fns[0] + "(L, R), " + fns[2] + "(R*))")
elif pattern == "222":
print(fns[2] + "(" + fns[1] + "(" + fns[0] + "(L, R), R*), R&)")