@classmethod<EOL><INDENT>def parse(cls, s):<DEDENT>
try:<EOL><INDENT>s = s.replace('<STR_LIT:U+002C>', '<STR_LIT>')<EOL>currency, amount = s.strip().split('<STR_LIT:U+0020>')<EOL>return cls(amount, currency)<EOL><DEDENT>except ValueError as err:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>".format(s, err)) from None<EOL><DEDENT>
Parse from a string representation (repr)