Java code for Parser table and Parse tree