I have some expressions in a file:
e = a & b;
f = e | c;
d = ~f;
I need to resolve these expressions into a compound expression like this:
d = ~ ((a & b) | c)
How can I do this in Perl. Are there any CPAN modules that I can use for this? Or, can this be done without using modules?
I am working on a verilog parser project.