Class UcLexerStream

A stream that transforms input chunks to URI charge tokens.

Utilizes URI charge lexer internally.

Hierarchy

  • TransformStream<string, UcToken>
    • UcLexerStream

Constructors

Properties

Constructors

  • Constructs lexer stream.

    Parameters

    • createLexer: ((emit) => UcLexer) = UcLexerStream$createDefaultLexer

      Creates an input lexer to use. By default, creates UcChargeLexer instance.

        • (emit): UcLexer
        • Parameters

          • emit: ((token) => void)
              • (token): void
              • Parameters

                Returns void

          Returns UcLexer

    • Optional writableStrategy: QueuingStrategy<string>

      An object that optionally defines a queuing strategy for the input (chunks) stream.

      Optional
    • Optional readableStrategy: QueuingStrategy<UcToken>

      An object that optionally defines a queuing strategy for the output (tokens) stream.

      Optional

    Returns UcLexerStream

Properties

readable: ReadableStream<UcToken>
writable: WritableStream<string>

Generated using TypeDoc