verify And Parse
Verifies and parses parameter.
This function must not have any side effects since this function may be called while the command is still being written!
Return
the text is not valid, this function returns Result.Error, otherwise Result.Ok with the parsed content is returned.