rename generateDocument() to parse() DocumentParser#generate is about parsing.

rename generateDocument() to parse()
DocumentParser#generate is about parsing.