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:
parent
3ddf361d17
commit
e32ff65beb
1 changed files with 10 additions and 1 deletions
11
chainify.py
11
chainify.py
|
@ -57,4 +57,13 @@ for exp in exprs:
|
|||
print(fns[1] + "(" + fns[0] + ", " + "R)")
|
||||
|
||||
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)")
|
||||
|
|
Loading…
Reference in a new issue