Python script to convert regular logical expressions into NAND/NOR format.
Usage: python UniGConv.py
Note: logical expression should use Logisim format (' ' for AND operator, '+' for OR operator, '~' for NOT operator, and parentheses)
Example input:
nor:A (B + C) # output: ~(~A+~(B+C))