Finish all the parsing rules and clean up error_line.