Tiny parser for converting strings to hashes