Macro atom

Source
macro_rules! atom {
    ($the_str:expr) => { ... };
}
Expand description

Makes an atom from a string slice.

Atoms are string constants. Unlike Prolog, Suiron’s atoms can be capitalized or lower case.
For example, in the complex term ‘father(Anakin, Luke)’, the terms ‘father’, ‘Anakin’, and ‘Luke’ are all atoms.

§Usage

use suiron::*;

let functor = atom!("father");
let term1 = atom!("Anakin");
let term2 = atom!("Luke");