Saxonberg Server API
    Preparing search index...

    Interface ParserContext

    Parser-side context — what a parser may look at to decide intent.

    interface ParserContext {
        available: CommandDefinition[];
        commandGiver: Stuff & CommandGiver;
        location: Stuff & Container | null;
    }
    Index

    Properties

    available: CommandDefinition[]

    Available command definitions on the actor's recency stack — the universe of verbs the parser is allowed to choose from. Pre-filtered so the parser can ignore definitions the actor can't actually fire.

    commandGiver: Stuff & CommandGiver

    The actor running the command. NL parsers may want this for disambiguation (e.g. "look at MY sword" vs "look at her sword").

    location: Stuff & Container | null

    The Container the actor is currently in — surface for disambiguation. Typically a Location but may be any Stuff & Container (a Vessel interior, etc.).