Function parse_functor_terms

Source
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 - string
  • list of terms - string

§Return

§Usage

use suiron::*;

let cmplx = parse_functor_terms("father", "Anakin, Luke");
match cmplx {
    Ok(c) => { println!("{}", c); },
    Err(err) => { println!("{}", err); },
}
// Prints: Anakin, Luke