Skip to content

Usage

import io.eleven19.krueger.Krueger
val source = """module Main exposing (..)
import Html exposing (text)
main = text "Hello, World!"
"""
// Parse to CST
val cst = Krueger.parseModule(source)
// Parse to AST
val ast = Krueger.parseModuleToAst(source)

See the API Reference for the full surface area, Examples for richer end-to-end walkthroughs, and Tooling for browser playgrounds and the WASM-backed Krueger API.