You are here

public function AbstractLexer::resetPosition in Plug 7

Resets the lexer position on the input to the given position.

Parameters

integer $position Position to place the lexical scanner.:

Return value

void

File

lib/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php, line 129

Class

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

Namespace

Doctrine\Common\Lexer

Code

public function resetPosition($position = 0) {
  $this->position = $position;
}