debugged parser.cc to compile