@configuredthings/rdp.js - v0.8.0
    Preparing search index...

    Type Alias GeneratorOptions

    Options controlling what generateParser emits.

    type GeneratorOptions = {
        caseSensitiveStrings?: boolean;
        format?: "ebnf" | "abnf";
        observable?: boolean;
        parserName?: string;
        traversal?: "interpreter" | "tree-walker";
        treeName?: string;
    }
    Index

    Properties

    caseSensitiveStrings?: boolean

    When true, plain quoted string literals ("abc") in ABNF grammars are matched case-sensitively — the generated parser uses the exact characters as written. When false (the RFC 5234 default), they are case-insensitive: ASCII letters match in either case and the parse tree holds the text actually read.

    Has no effect on EBNF grammars or on %s"..." / %i"..." literals.

    false
    
    format?: "ebnf" | "abnf"

    Grammar format. Defaults to 'ebnf'. Use 'abnf' for RFC 5234 ABNF grammars.

    observable?: boolean

    When true, the generated parser extends ObservableRDParser and each production method includes notifyEnter/notifyExit calls.

    false
    
    parserName?: string

    Class name for the generated parser.

    'GeneratedParser'
    
    traversal?: "interpreter" | "tree-walker"

    Mix traversal stubs into the generated file and switch the file header to "not regenerated; edit freely".

    • 'interpreter': adds implements InterpreterMixin<ParseTree, unknown> to the class and emits one eval* stub method per rule, plus a static evaluate().
    • 'tree-walker': emits a standalone walk() export after childNodes and a visitor template comment.
    treeName?: string

    Root type name for the generated parse tree types.

    'ParseTree'