pub fn parse_functor_terms(
functor: &str,
terms: &str,
) -> Result<Unifiable, String>
Expand description
Parses two string arguments to produce a complex term.
§Arguments
functor
- stringlist of terms
- string
§Return
Result
- Ok(SComplex) or Err(message)
§Usage
use suiron::*;
let cmplx = parse_functor_terms("father", "Anakin, Luke");
match cmplx {
Ok(c) => { println!("{}", c); },
Err(err) => { println!("{}", err); },
}
// Prints: Anakin, Luke