Fichier

advagg_js_minify/jsminplus.inc, line 872

Classe

JSParser

Code

public function parse($s, $f, $l) {
    // initialize tokenizer
    $this->t
        ->init($s, $f, $l);
    $x = new JSCompilerContext(false);
    $n = $this->Script($x);
    if (!$this->t
        ->isDone()) {
        throw $this->t
            ->newSyntaxError('Syntax error');
    }
    return $n;
}