Rust ffi for embeddable common lisp
- Rust 70.3%
- C 29.7%
| eclisp | ||
| eclisp-sys | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
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(())
}