DFA based parser for parsing a STEP comment.

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

Instance: default = ...

Methods

  • Get the value of a given state for a given value.

    Useful for using this for mappings. Will cause an exception if out of bounds.

    Parameters

    • value: number

      The byte value to lookup.

    • state: number

      The state to get the value for.

    Returns number

  • Match a STEP comment.

    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.