I have just started a project in which I need to convert an input such as
into a logic statement as below
(((NOT x) AND y) OR (x AND (NOT y)))
I have written a program to read in the input from the user which stores it in a single string field.
I think the next step is to split up each of the characters in the string field so they can be converted to the logic statements. Is this correct? or is there an easier way.
also is it possible to get a program to recognise capital letters, as these need to be NOT statements.
I would just like to be pointed in the right direction so I can work out how to do this myself, I have tried looking through the tutorials but these don't seem to match what I need my program to do.
Thanks for any help in advance