#NEWLINE# def parse( format_string ) : #NEWLINE# #INDENT# 'Parses format string.\n\n  Args:\n    format_string: format_string from MapReduce FileInputReader.\n\n  Returns:\n    a list of file_formats._FileFormat objects.\n\n  Raises:\n    ValueError: when format_string parsing fails because of invalid syntax\n      or semantics.\n  ' #NEWLINE# tokenizer = _Tokenizer ( format_string ) #NEWLINE# return _Parser ( tokenizer ) . formats