Sets the input data to be tokenized.
The Lexer is immediately reset and the new input tokenized. Any unprocessed tokens from any previous input are lost.
string $input The input to be tokenized.:
void
public function setInput($input) { $this->input = $input; $this->tokens = []; $this->reset(); $this->scan($input); }