Skip to content

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.

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 a parsley.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.

Generic tree-query DSL over a QueryableTree[T] typeclass, from krueger-trees. Includes QueryParser, Matcher, and the query AST types.

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.