You are here

public function AbstractLexer::reset in Zircon Profile 8

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

Resets the lexer.

Return value

void

2 calls to AbstractLexer::reset()
AbstractLexer::setInput in vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php
Sets the input data to be tokenized.
EmailLexer::reset in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php
Resets the lexer.
1 method overrides AbstractLexer::reset()
EmailLexer::reset in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php
Resets the lexer.

File

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

Code

public function reset() {
  $this->lookahead = null;
  $this->token = null;
  $this->peek = 0;
  $this->position = 0;
}