Skip to main content

Module cst_js

Module cst_js 

Source
Expand description

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

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

Functions§

parse_js
Parse JavaScript source into a lino-cst.js.* CST.
print_js
Print a JS CST back to source.