Skip to main content

Module cst_rust

Module cst_rust 

Source
Expand description

Rust ↔ .lino CST converter (issue #138).

Token-level lossless converter for Rust source. Produces a lino-cst.rust.* flat CST whose round-trip is byte-faithful: print_rust(&parse_rust(src)) == src. Mirrors js/src/cst-rust.mjs line for line.

Functions§

parse_rust
Parse Rust source into a lino-cst.rust.* CST.
print_rust
Print a Rust CST back to source.