Interface FirstPartiallyConsumedChar

This is equivalent to a regex fragment [char]|(?=[look.char]) or [char]|(?=[look.char]|$) depending on edge.

Hierarchy

  • FirstPartiallyConsumedChar

Properties

Properties

char: CharSet

A super set of the first character.

We can usually only guarantee a super set because lookaround in the pattern may narrow down the actual character set.

empty: true

If true, then the first character also includes the empty word.

exact: boolean

If true, then char is guaranteed to be exactly the first character and not just a super set of it.

A set of characters that may come after the consumed character