parses boolean arithmetic expressions and generates corresponding truth tables