public function AbstractLexer::skipUntil in Plug 7
Tells the lexer to skip input tokens until it sees a token with the given value.
Parameters
string $type The token type to skip until.:
Return value
void
File
- lib/
doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php, line 192
Class
- AbstractLexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common\LexerCode
public function skipUntil($type) {
while ($this->lookahead !== null && $this->lookahead['type'] !== $type) {
$this
->moveNext();
}
}