moonrockz/gleam-parser/cst does not have a README file
fn DefinitionCst::new(kind~ : DefinitionKind, name~ : String?, tokens~ : ArrayView[Token]) -> DefinitionCsttest {
let stream = @scanner.tokenize_text("const x = 1\n")
let d = @cst.DefinitionCst::new(
kind=Constant,
name=Some("x"),
tokens=stream.tokens,
)
let cst = @cst.ModuleCst::new(stream, [d])
inspect(cst.to_source(), content="const x = 1\n")
}Install
Download zipParser and parsing utilities for the Gleam programming language in MoonBit
Dependencies