sun::parsing::TokenTable

sun::parsing::TokenTable

struct · Source (opens in a new tab)

struct sun::parsing::TokenTable

Views build-generated transitions without allocating or constructing a DFA.

Public Functions

acceptKind

public · function · Source (opens in a new tab)

int32_t sun::parsing::TokenTable::acceptKind(int32_t state) const

Returns the winning token kind, or a negative value for no match.

startState

public · function · Source (opens in a new tab)

int32_t sun::parsing::TokenTable::startState() const

Returns the state from which token matching begins.

step

public · function · Source (opens in a new tab)

int32_t sun::parsing::TokenTable::step(int32_t state, unsigned char byte) const

Advances the scanner by one input byte.

Public Fields

kinds

public · variable · Source (opens in a new tab)

std::span<const int32_t> sun::parsing::TokenTable::kinds

No documentation comment.

start

public · variable · Source (opens in a new tab)

int32_t sun::parsing::TokenTable::start

No documentation comment.

transitions

public · variable · Source (opens in a new tab)

std::span<const std::array<int32_t, 256> > sun::parsing::TokenTable::transitions

No documentation comment.