revise the code in the pascalparsertd.java