« Parle\RLexer::push
Parle\RLexer::reset »

Parle\RLexer::pushState

(PECL parle >= 0.5.1)

Parle\RLexer::pushState — Push a new start state

説明

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

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.

戻り値

関連キーワード:
state   Parle   RLexer   Push   start   pushState   push   reset   parle   lexer   type   more   machine   allows   different   tokens   depending   context   thus   allowing   parsing   take   place   Once   pushed
関連する関数・ページ:
parle-rlexer.dump   parle-rlexer.push   class.parle-rlexer   parle-rlexer.build   parle-rlexer.gettoken   parle-rlexer.consume