public function Lexer::reset

Resets the lexer.

1 call to Lexer::reset()
Lexer::setInput in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Lexer.php
Sets the input data to be tokenized.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Lexer.php, line 76

Class

Lexer
Base class for writing simple lexers, i.e. for creating small DSLs.

Namespace

Doctrine\Common

Code

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