Function parse_arguments

Source
pub fn parse_arguments(to_parse: &str) -> Result<Vec<Unifiable>, String>
Expand description

Parses a list of terms (arguments).

Parses a comma separated list of terms to produce a vector of Unifiable terms.

§Arguments

  • string to parse

§Return

§Usage

use suiron::*;

if let Ok(terms) = parse_arguments("Argon, 18") {
    println!("{:?}", terms);
}
// Should print: [Atom("Argon"), SInteger(18)]