def parse_cobol(lines):
output = []<EOL>intify = ["<STR_LIT>", "<STR_LIT>"]<EOL>for row in lines:<EOL><INDENT>match = CobolPatterns.row_pattern.match(row.strip())<EOL>if not match:<EOL><INDENT>_logger().warning("<STR_LIT>" % row.strip())<EOL>continue<EOL><DEDENT>match = match.groupdict()<EOL>for i in intify:<EOL><INDENT>match[i] = int(match[i]) if match[i] is not None else None<EOL><DEDENT>if match['<STR_LIT>'] is not None:<EOL><INDENT>match['<STR_LIT>'] = parse_pic_string(match['<STR_LIT>'])<EOL><DEDENT>output.append(match)<EOL><DEDENT>return output<EOL>
Parses the COBOL
 - converts the COBOL line into a dictionary containing the information
 - parses the pic information into type, length, precision
 - ~~handles redefines~~ -> our implementation does not do that anymore
   because we want to display item that was redefined.