fixed bugs in the recursive descent parser.