protected function parseError($msg) {
        $args = func_get_args();

        if (count($args) > 1) {
            array_shift($args);
            $msg = vsprintf($msg, $args);
        }

        $line = $this->scanner->currentLine();
        $col = $this->scanner->columnOffset();
        $this->events->parseError($msg, $line, $col);
        return false;
    }
protected function parseError($msg) {
        $args = func_get_args();

        if (count($args) > 1) {
            array_shift($args);
            $msg = vsprintf($msg, $args);
        }

        $line = $this->scanner->currentLine();
        $col = $this->scanner->columnOffset();
        $this->events->parseError($msg, $line, $col);
        return false;
    }
protected function parseError ( $ msg ) { $ args = func_get_args ( ) ; if ( count ( $ args ) > 1 ) { array_shift ( $ args ) ; $ msg = vsprintf ( $ msg , $ args ) ; } $ line = $ this -> scanner -> currentLine ( ) ; $ col = $ this -> scanner -> columnOffset ( ) ; $ this -> events -> parseError ( $ msg , $ line , $ col ) ; return false ; }
Emit a parse error.

A parse error always returns false because it never consumes any
characters.
Emit a parse error .