Expand description
Universal CST converter dispatch (issue #138).
Single entry point that turns host-language source into a .lino CST and
back. Mirrors js/src/cst-convert.mjs. Provides:
parse_to_cst— host source → CST.print_from_cst— CST → host source.round_trip— convenience helper that asserts byte fidelity.
Supported lang values: "rust", "js" (or "javascript"), "lean", "rocq".
Structs§
- Round
Trip Result - Result of a round-trip check.
Constants§
- SUPPORTED_
LANGUAGES - The four host languages plus the
javascriptalias.
Functions§
- parse_
to_ cst - Parse host-language source into a
.linoCST. - print_
from_ cst - Print a CST node back to host-language source.
- round_
trip - Verify that
print_from_cst(parse_to_cst(src, lang), lang) == src.