pub fn parse_protocol(input: &str) -> Result<Protocol, String>
Parse protocol definition from string.