I'm not new to writing programs but I am quite new to proper programming (i.e. C);
Anyways, I have to write a program to parse an expression into a boolean circuit. The expressions have to follow a strict grammar. For example:
I'm thinking the best way to implement this would be using an N-ary tree. But I have no idea how to set one up.Code:xY zRg = ((x AND (NOT y) OR (z AND (NOT r) AND g))
Can someone show me how to set one up simply, please?
Thanks for your time,