Property | Type | Description | |
---|---|---|---|
$KEYWORD_PARSERS | array | Array of classes that are used in parsing SQL components. | |
$STATEMENT_PARSERS | array | Array of classes that are used in parsing the SQL statements. | |
$brackets | integer | The number of opened brackets. | |
$errors | Usually, the parsing does not stop once an error occurred because that error might be a false positive or a partial result (even a bad one) might be needed. | ||
$list | The list of tokens that are parsed. | ||
$statements | List of statements parsed. | ||
$strict | boolean | Whether errors should throw exceptions or just be stored. |
Method | Description | |
---|---|---|
__construct ( string | |
Constructor. | |
error ( string $msg = '', |
Creates a new error log. | |
parse ( ) : void | Builds the parse trees. |
public __construct ( string | |
||
$list | string | |
The list of tokens to be parsed. |
$strict | boolean | Whether strict mode should be enabled or not. |
public static array $KEYWORD_PARSERS | ||
return | array |
public static array $STATEMENT_PARSERS | ||
return | array |
public ParserException[],SqlParser\Exceptions $errors | ||
return |
public TokensList,sqlparser $list | ||
return |
public Statement[],sqlparser $statements | ||
return |
public bool $strict | ||
return | boolean |