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:06:47 +11:00 committed by GitHub
parent 3ddf361d17
commit e32ff65beb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,4 +57,13 @@ for exp in exprs:
print(fns[1] + "(" + fns[0] + ", " + "R)") print(fns[1] + "(" + fns[0] + ", " + "R)")
elif pattern == "20": elif pattern == "20":
print(fns[0] + "(L, " + fns[1] + ")") print(fns[0] + "(L, " + fns[1] + ")")
elif pattern == "21":
print(fns[0] + "(L, " + fns[1] + ")")
elif pattern == "22":
print(fns[1] + "(" + fns[0] + "(L, R), R*)")
elif pattern == "102":
print(fns[2] + "(" + fns[0] + "(" + fns[1] + "), R)")