You are here

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\Lexer

Code

public function skipUntil($type) {
  while ($this->lookahead !== null && $this->lookahead['type'] !== $type) {
    $this
      ->moveNext();
  }
}