pub fn resolve(s: &str) -> Result<Resolved, &'static str>
Returns error in case s cannot be understood.
s