added peekNextToken to act as a second lookahead. fixed ambiguity of rule 34/39.