parse
Parses arguments into a protocol of type P.
Note that calling Protocol.arguments on the returned value should result in a map equivalent to arguments. This function does not need to check for extra arguments; that is done automatically.
Throws
if the arguments are malformed.