class Tlf\Lexer\Token
Constants
Properties
-
protected $source;
-
protected $remainder = false;
-
protected $buffer = false;
-
protected $index = -1;
-
protected $len = 0;
-
protected $prevToken;
-
protected $matches =[];
Methods
-
public function __construct($source)
-
public function buffer()
-
public function remainder()
-
public function setBuffer($newBuffer)
-
public function append($str)
-
public function clearBuffer()
-
public function next()
-
public function rewind(int $amount)
Remove $amount characters from the buffer & prepend them to $remainder.
-
public function forward(int $amount)
Move the pointer forward by $amount
chars by repeatedly calling $this->next()
-
public function match($index=false)
-
public function setMatch($match)