Skip to main content

Crate tatara_rust_tlisp

Crate tatara_rust_tlisp 

Source
Expand description

tatara-rust-tlisp — tlisp authoring surface for every L2 macro Spec.

Two purposes:

  1. Forward path — write a (defprocderive …) / (defprocattr …) / (defprocfn …) / (defmacrules …) / (defsuite …) form in tlisp; this crate’s [render_tlisp] turns each Spec back into that text shape (round-trip).
  2. TataraDomain registration — when tatara-lisp-derive lands as a dep, every Spec gets #[derive(TataraDomain)] + #[tatara(keyword = "def…")] in this crate. Authoring forms expand to the Spec at compile time.

Today only the rendering half ships. The derive macros land as a one-line addition per Spec once the upstream is reachable.

Re-exports§

pub use catalog::ParseError;
pub use catalog::SExpr;
pub use catalog::parse_macrocatalog;
pub use catalog::parse_sexprs;
pub use catalog::render_macrocatalog;

Modules§

catalog
(defmacrocatalog …) tlisp authoring surface.

Traits§

RenderTlisp
Render any Spec to its canonical tlisp (def<kind> …) form. The returned text is what the operator authors today in a .tlisp file.