knave 0.14.22

A Lisp programming language for humans and agents that infers types and ownership and compiles to readable Rust
Documentation
1
2
3
4
5
6
7
8
9
pub struct FakePrograms;

impl FakePrograms {
    pub const PRINTS_A_SUM: &str = "(defn main () (println (+ 1 2)))\n";
    pub const WITHOUT_MAIN: &str = "(def width (+ 1 2))\n";
    pub const MISTYPED: &str = "(def width (+ 1 \"two\"))\n";
    pub const UNREACHABLE_ARM: &str =
        "(enum shape (circle f64) point)\n\n(defn area (s)\n  (match s (_ 0.0) (point 1.0)))\n";
}