Saxonberg Server API
    Preparing search index...

    Interface Parser

    Parser contract. A parser is a stateless transform from (text, context) → ParseResult. Implementations live under mud/lib/command/parsers/<name>.ts and default-export a Parser value. Custom parsers can live anywhere; reference them by absolute path (/path/to/file) from the shell.parser setting.

    interface Parser {
        name: string;
        parse(
            text: string,
            context: ParserContext,
        ): ParseResult | Promise<ParseResult>;
    }
    Index

    Properties

    Methods

    Properties

    name: string

    Display name. Bare-name spec resolves to lib/command/parsers/<name>.

    Methods