eclisp 0.1.7

Bindings for Embeddable Common Lisp
docs.rs failed to build eclisp-0.1.7
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

Embeddable Common Lisp Bindings

Safe bindings for the ECL project.

Example

use eclisp::{Lisp, LispError};

fn main() -> Result<(), LispError> {
    let lisp = Lisp::new()?;

    let value = lisp.eval("(+ 1 2)")?;
    println!("Result of (+ 1 2): {:?}", value.try_as_i64());

    lisp.eval("(defun double (n) (* n 2))")?;
    let doubled = lisp.call("double", &[&lisp.int(3)?])?;
    println!("3 doubled = {}", doubled);

    Ok(())
}