Parle\RLexer::pushState

Push a new start state

説明

public int Parle\RLexer::pushState(string $state)

This lexer type can have more than one state machine. This allows you to lex different tokens depending on context, thus allowing simple parsing to take place. Once a state pushed, it can be used with a suitable Parle\RLexer::push signature variant.

パラメータ

state

Name of the state.

戻り値