thenState

infix fun thenState(next: StateLabel)

Specifies that, once a match is found, the lexer should use the given state next. Valid values are:

  • default or null to go to the default state

  • A StateLabel to go to the state with the given label


infix fun thenState(default: StateBuilder.Default)

Specifies that, once a match is found, the lexer should go to the default state.