You are here

public function JSTokenizer::init in Javascript Aggregator 6

File

./jsminplus.php, line 1753

Class

JSTokenizer

Code

public function init($source, $filename = '', $lineno = 1) {
  $this->source = $source;
  $this->filename = $filename ? $filename : '[inline]';
  $this->lineno = $lineno;
  $this->cursor = 0;
  $this->tokens = array();
  $this->tokenIndex = 0;
  $this->lookahead = 0;
  $this->scanNewlines = false;
  $this->scanOperand = true;
}