public function AbstractLexer::moveNext in Plug 7
Moves to the next token in the input string.
Return value
boolean
1 call to AbstractLexer::moveNext()
- AbstractLexer::skipUntil in lib/
doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php - Tells the lexer to skip input tokens until it sees a token with the given value.
File
- lib/
doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php, line 175
Class
- AbstractLexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common\LexerCode
public function moveNext() {
$this->peek = 0;
$this->token = $this->lookahead;
$this->lookahead = isset($this->tokens[$this->position]) ? $this->tokens[$this->position++] : null;
return $this->lookahead !== null;
}