Update website

This commit is contained in:
Guilhem Lavaux 2024-11-23 20:45:29 +01:00
parent 41ce1aa076
commit ea0eb1c6e0
4222 changed files with 721797 additions and 14 deletions

View file

@ -0,0 +1,19 @@
<?php
/*
* This file is part of the BibTex Parser.
*
* (c) Renan de Lima Barbosa <renandelima@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RenanBr\BibTexParser\Exception;
/**
* Interface for package exceptions.
*/
interface ExceptionInterface
{
}

View file

@ -0,0 +1,35 @@
<?php
/*
* This file is part of the BibTex Parser.
*
* (c) Renan de Lima Barbosa <renandelima@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RenanBr\BibTexParser\Exception;
use Exception;
class ParserException extends Exception implements ExceptionInterface
{
/**
* @param string $character
* @param int $line
* @param int $column
*/
public static function unexpectedCharacter($character, $line, $column)
{
// Avoid var_export() weird treatment for \0
$character = "\0" === $character ? "'\\0'" : var_export($character, true);
return new self(sprintf(
'Unexpected character %s at line %d column %d',
$character,
$line,
$column
));
}
}

View file

@ -0,0 +1,18 @@
<?php
/*
* This file is part of the BibTex Parser.
*
* (c) Renan de Lima Barbosa <renandelima@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RenanBr\BibTexParser\Exception;
use Exception;
class ProcessorException extends Exception implements ExceptionInterface
{
}