private function error($message = "Unexpected '%s'") { list(, $line, $col) = self::$tokenizer->getOffset($this->n); $token = str_replace("\n", '\\n', NString::truncate(self::$tokenizer->tokens[$this->n], 40)); throw new NNeonException(str_replace('%s', $token, $message) . "' on line " . ($line - 1) . ", column {$col}."); }