sun::parsing::TokenTable
struct · Source (opens in a new tab)
struct sun::parsing::TokenTableViews 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) constReturns 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() constReturns 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) constAdvances 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::kindsNo documentation comment.
start
public · variable · Source (opens in a new tab)
int32_t sun::parsing::TokenTable::startNo documentation comment.
transitions
public · variable · Source (opens in a new tab)
std::span<const std::array<int32_t, 256> > sun::parsing::TokenTable::transitionsNo documentation comment.