I want to make a propositional calculus parser with Javascript, which will elaborate the input and tell if the logical proposition is correct. For example, I would type
(A && B) || (B && A) => not(A)
and then i would insert in another prompt the possible values of A and B.
I'm not asking someone to get the work done for me, it's just I don't know where to start. I'd like to have some hints: how could I correctly represent with Javascript the semantic, the syntax of the propositional calculus?
Thanks in advance!