Update chainify.py

This commit is contained in:
JonoCode9374 2019-12-26 21:03:59 +11:00 committed by GitHub
parent 147c611fef
commit 3ddf361d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -42,4 +42,19 @@ for exp in exprs:
pattern, fns = exp
if pattern == "020":
print(fns[1] + "(" + fns[0] + ",", fns[2] + ")")
print(fns[1] + "(" + fns[0] + ", " + fns[2] + ")")
elif pattern == "02":
print(fns[1] + "(" + fns[0] + ", R)")
elif pattern == "10":
print(fns[0] + "(" + fns[1] + ")")
elif pattern == "11":
print(fns[0] + "(" + fns[1] + "(R))")
elif pattern == "12":
print(fns[1] + "(" + fns[0] + ", " + "R)")
elif pattern == "20":
print(fns[0] + "(L, " + fns[1] + ")")