GoLang Parle\RLexer::pushState

request it (111)
GoLang replacement for PHP's Parle\RLexer::pushState [edit | history]

Do you know a GoLang replacement for PHP's Parle\RLexer::pushState? Write it!

PHP Parle\RLexer::pushState

PHP original manual for Parle\RLexer::pushState [ show | php.net ]


(PECL parle >= 0.5.1)

Parle\RLexer::pushStatePush 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.



Name of the state.

Return Values