API Reference
Krueger’s public API is organized into two Scala modules cross-built for three platforms. A hand-written overview lives on this page; the complete, generated Scaladoc reference is a separate artifact with per-platform trees for JVM, Scala.js, and Scala Native.
Modules at a glance
Section titled “Modules at a glance”io.eleven19.krueger.Krueger
Section titled “io.eleven19.krueger.Krueger”Top-level convenience entrypoint exposed from krueger-core.
parseModule(source: String)— parse to a CST module.parseModuleToAst(source: String)— parse and lower to an AST module.parseCst(source: String)— parse to CST and return aparsley.Result.
io.eleven19.krueger.cst / io.eleven19.krueger.ast
Section titled “io.eleven19.krueger.cst / io.eleven19.krueger.ast”Node hierarchies, cursors, and visitors for each tree representation, from
krueger-core.
io.eleven19.krueger.trees
Section titled “io.eleven19.krueger.trees”Generic tree-query DSL over a QueryableTree[T] typeclass, from
krueger-trees. Includes QueryParser, Matcher, and the query AST types.
Full Scaladoc
Section titled “Full Scaladoc”Pick a platform — each tree is built from the same krueger.core +
krueger.trees sources but links against that platform’s standard library and
dependencies:
- JVM — default target; widest third-party interop.
- Scala.js — browser / Node.js builds.
- Scala Native — native-image builds.
The Scaladoc landing page is the single entry point that lists all three.