DFA based parser to match a real number, including scientific.

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

Instance: default = ...

Methods

  • Match a signed real and returned the updated cursor position or undefined if no match is found

    Parameters

    • input: Uint8Array

      The input buffer to match against.

    • cursor: number

      The cursor to test the match against.

    • endCursor: number

      The end point to look at in the buffer.

    Returns undefined | number

    The end of the match or undefined if none found.

  • Match an unsigned real and return the updated cursor position or undefined if no match is found

    Parameters

    • input: Uint8Array

      The input buffer to match against.

    • cursor: number

      The cursor to test the match against.

    • endCursor: number

      The end point to look at in the buffer.

    Returns undefined | number

    The end of the match or undefined if none found.