marianoguerra/shrubbery/parser does not have a README file

    Mode

    pub(all) enum Mode {
    Top
    Text
    } derive(Eq)

    What to read.

    The mode decides the shape of the answer, which is why it is a parameter rather than something inferred: Top always gives a multi, Text always gives a brackets.

    Parsed

    A successful parse, and anything reported along the way.

    diagnostics is non-empty only in recovery mode, where parsing continues past a failure so that a file with three mistakes reports three. Outside recovery, the first failure is raised instead.

    Parsed::diagnostics

    parse

    Parse shrubbery notation.

    start_column accounts for characters that logically precede the input, for an embedder splicing this into something larger; it affects indentation only, never the positions reported.

    parse_tokens

    Parse an already-scanned token stream.

    Exposed because a consumer that has its own reason to look at the tokens -- an editor, a highlighter -- should not have to scan twice.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io