编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Parle\RLexer::push
  • Parle\RLexer::reset »
  • PHP Manual
  • Parle\RLexer
  • Push a new start state

Parle\RLexer::pushState

(PECL parle >= 0.5.1)

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

说明

public 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.

返回值

相关文章
php parle the parle rlexer classphp mcve 函数 start a new transactionphp pdf 函数 start new pagephp pdf 函数 start new page deprecated php ps 函数 start a new pagephp ps 函数 start a new patternphp ps 函数 start a new templatephp mongodb driver manager start a new client session for use with this clientphp parle parser reset parser statephp parle rlexer process next lexer rulephp parle rlexer finalize the lexer rule setphp parle rlexer define token callbackphp parle rlexer pass the data for processingphp parle rlexer dump the state machinephp parle rlexer retrieve the current tokenphp parle rlexer insert regex macrophp parle rlexer add a lexer rulephp parle rlexer push a new start statephp parle rlexer reset lexerphp parle rparser reset parser state
关注编程学问公众号
编程学问网 湘ICP备20001732号