Parses and compiles a hash