rlisp is an open source project that brings LISP syntax to Rust semantics, acting as a transparent s-expression frontend that transpiles directly to Rust source code. It preserves all Rust features — ownership, borrowing, lifetimes, generics, traits, and pattern matching — while expressing them as s-expressions. The tool supports a full syntax map covering structs, enums, closures, modules, visibility modifiers, and macros. rlisp macros are compile-time s-expression transformers using quasiquote/unquote, requiring no proc_macro or token streaming. An escape hatch via (rust "...") allows embedding raw Rust inline. The project is motivated by the elegance of LISP macros, structural editing benefits, and homogeneous syntax.

6m read timeFrom github.com
Post cover image
Table of contents
InstallUsageSyntax mapMacrosLoopsClosuresModules, visibility, and importsInline RustWhyLicense

Sort: