macro_rules! scomplex {
($($term:expr),*) => { ... };
}
Expand description
Creates a complex term (= compound term).
As in Prolog, complex terms consist of a functor, followed by a sequence of arguments (terms) enclosed in parentheses. For example:
animal(horse, mammal, herbivore)
See also: make_complex().
§Arguments
- list of Unifiable terms
§Return
§Usage
- To build: pronoun(I, subject, first, singular)
use suiron::*;
let functor = atom!("pronoun");
let word = atom!("I");
let case = atom!("subject");
let person = atom!("first");
let sing_plur = atom!("singular");
let pronoun = scomplex!(functor, word, case, person, sing_plur);
§Note
- The first term must be an Atom, but this macro does not check.