moonrockz/krueger/parser does not have a README file

    AttributeGroup

    pub(all) struct AttributeGroup {
    target : AttributeTarget
    attributes : ArrayView[DocAttribute]
    } derive(Eq,
    Debug
    )

    The attributes of the module or of one declaration, in source order.

    AttributeTarget

    pub(all) enum AttributeTarget {
    Module
    Declaration(name~ : String, range~ :
    Range
    )
    } derive(Eq,
    Debug
    )

    What a group of doc-comment attributes belongs to.

    DocAttribute

    One attribute line in a doc comment: @name value..., or the built-in @docs a, b list.

    ParseResult

    Result of parsing one Elm module.

    ast is the elm-syntax AST, present when the module header is valid. cst keeps every token and every declaration that parses. diagnostics lists scanner and parser problems.

    encode_attributes

    fn encode_attributes(groups : Array[AttributeGroup]) -> Json

    Attribute groups as JSON, for tools.

    encode_attributes_with

    fn encode_attributes_with(groups : Array[AttributeGroup], exact_ints~ : Bool) -> Json

    Attribute groups as JSON. With exact_ints, Int arguments are written with their exact digits (see @ast.encode_file_with).

    parse_module

    Tokenize source with scanner and parse it in dialect. The caller builds scanner for the same dialect.

    parse_tokens

    Parse a token stream into an elm-syntax AST, a CST and diagnostics, following stil4m/elm-syntax 7.3.9.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io