Pyeda permits to write boolean expression in prefix form and in infix form:
p = Or(And("A","B"), And("C","D")) # prefix
i = expr("A & B | C & D") # infix
Although it's possible to retrieve automatically from i
the relative prefix form, I don't know (no findings in docs) if it's possible to retrieve the string infix representation of p
.
Some helps?