init web ems all

This commit is contained in:
agtuser
2024-09-27 17:13:36 +08:00
parent 81c97acbe9
commit 5cc56f8078
4263 changed files with 798779 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
/**
* Exception thrown by the lexer.
*/
namespace PhpMyAdmin\SqlParser\Exceptions;
/**
* Exception thrown by the lexer.
*
* @category Exceptions
*
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
*/
class LexerException extends \Exception
{
/**
* The character that produced this error.
*
* @var string
*/
public $ch;
/**
* The index of the character that produced this error.
*
* @var int
*/
public $pos;
/**
* Constructor.
*
* @param string $msg the message of this exception
* @param string $ch the character that produced this exception
* @param int $pos the position of the character
* @param int $code the code of this error
*/
public function __construct($msg = '', $ch = '', $pos = 0, $code = 0)
{
parent::__construct($msg, $code);
$this->ch = $ch;
$this->pos = $pos;
}
}

View File

@@ -0,0 +1,37 @@
<?php
/**
* Exception thrown by the lexer.
*/
namespace PhpMyAdmin\SqlParser\Exceptions;
/**
* Exception thrown by the lexer.
*
* @category Exceptions
*
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
*/
class LoaderException extends \Exception
{
/**
* The failed load name.
*
* @var string
*/
public $name;
/**
* Constructor.
*
* @param string $msg the message of this exception
* @param string $name the character that produced this exception
* @param int $code the code of this error
*/
public function __construct($msg = '', $name = '', $code = 0)
{
parent::__construct($msg, $code);
$this->name = $name;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/**
* Exception thrown by the parser.
*/
namespace PhpMyAdmin\SqlParser\Exceptions;
use PhpMyAdmin\SqlParser\Token;
/**
* Exception thrown by the parser.
*
* @category Exceptions
*
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
*/
class ParserException extends \Exception
{
/**
* The token that produced this error.
*
* @var Token
*/
public $token;
/**
* Constructor.
*
* @param string $msg the message of this exception
* @param Token $token the token that produced this exception
* @param int $code the code of this error
*/
public function __construct($msg = '', Token $token = null, $code = 0)
{
parent::__construct($msg, $code);
$this->token = $token;
}
}