def parse(data):
sections = re.compile("<STR_LIT>", re.MULTILINE).split(data)<EOL>headings = re.findall("<STR_LIT>", data, re.MULTILINE)<EOL>sections.pop(<NUM_LIT:0>)<EOL>parsed = []<EOL>def func(h, s):<EOL><INDENT>p = parse_heading(h)<EOL>p["<STR_LIT:content>"] = s<EOL>parsed.append(p)<EOL><DEDENT>list(map(func, headings, sections))<EOL>return parsed<EOL>
Parse the given ChangeLog data into a list of Hashes.

@param [String] data File data from the ChangeLog.md
@return [Array<Hash>] Parsed data, e.g. [{ 'version' => ..., 'url' => ..., 'date' => ..., 'content' => ...}, ...]