You are here

public function AbstractLexer::moveNext in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php \Doctrine\Common\Lexer\AbstractLexer::moveNext()

Moves to the next token in the input string.

Return value

boolean

2 calls to AbstractLexer::moveNext()
AbstractLexer::skipUntil in vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php
Tells the lexer to skip input tokens until it sees a token with the given value.
EmailLexer::moveNext in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php
moveNext
1 method overrides AbstractLexer::moveNext()
EmailLexer::moveNext in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php
moveNext

File

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

Code

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;
}