def parse(self):
reader = self.split_records()<EOL>for line in reader:<EOL><INDENT>self.cur_record += <NUM_LIT:1><EOL>if not line:<EOL><INDENT>continue<EOL><DEDENT>stmt_line = self.parse_record(line)<EOL>if stmt_line:<EOL><INDENT>stmt_line.assert_valid()<EOL>self.statement.lines.append(stmt_line)<EOL><DEDENT><DEDENT>return self.statement<EOL>
Read and parse statement

        Return Statement object

        May raise exceptions.ParseException on malformed input.