Crate lithia

Crate lithia 

Source
Expand description

This crate provides a LISP implementation for embedding within rust programs

With support for providing rust functions as LISP functions within the environment

§Usage

This crate is on crates.io and can be used by adding lithia to your dependencies in your project’s Cargo.toml.

[dependencies]
lithia = "*"

§Example: simple REPL

let code = "(while t (print (eval (read))))".to_string()

let mut globals = HashMap::new();
let ret = Lisp::new(&mut globals)
    .add_stdenv().unwrap()
    .eval(&code);

Re-exports§

pub use lisp::Lisp;

Modules§

errors
lisp
object
stdenv