Parse boolean functions and produce truth tables