Wrote a function to print parse table. Not tested.