public function AbstractLexer::reset in Plug 7
Resets the lexer.
Return value
void
1 call to AbstractLexer::reset()
- AbstractLexer::setInput in lib/
doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php - Sets the input data to be tokenized.
File
- lib/
doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php, line 104
Class
- AbstractLexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common\LexerCode
public function reset() {
$this->lookahead = null;
$this->token = null;
$this->peek = 0;
$this->position = 0;
}