Lexer extends AbstractLexer

Scans a MySQL CREATE TABLE statement for tokens.

Table of Contents

Constants

T_ACTION  = 342
T_ASC  = 330
T_AUTO_INCREMENT  = 315
T_AVG_ROW_LENGTH  = 351
T_BIGINT  = 207
T_BINARY  = 220
T_BIT  = 201
T_BLOB  = 223
T_BTREE  = 344
T_CASCADE  = 340
T_CHAR  = 218
T_CHARACTER  = 328
T_CHECK  = 313
T_CHECKSUM  = 352
T_CLOSE_CURLY_BRACE  = 17
T_CLOSE_PARENTHESIS  = 4
T_COLLATE  = 329
T_COLUMN_FORMAT  = 317
T_COMMA  = 6
T_COMMENT  = 316
T_COMPRESSION  = 353
T_CONNECTION  = 354
T_CONSTRAINT  = 306
T_CREATE  = 300
T_CURRENT_TIMESTAMP  = 327
T_DATA  = 355
T_DATE  = 213
T_DATETIME  = 216
T_DECIMAL  = 211
T_DEFAULT  = 314
T_DELAY_KEY_WRITE  = 357
T_DELETE  = 338
T_DESC  = 331
T_DIRECTORY  = 356
T_DISK  = 324
T_DIVIDE  = 7
T_DOT  = 8
T_DOUBLE  = 209
T_DYNAMIC  = 322
T_ENCRYPTION  = 358
T_ENGINE  = 350
T_ENUM  = 230
T_EQUALS  = 9
T_EXISTS  = 305
T_FIXED  = 321
T_FLOAT  = 210
T_FOREIGN  = 349
T_FULL  = 333
T_FULLTEXT  = 309
T_GREATER_THAN  = 10
T_HASH  = 345
T_IDENTIFIER  = 100
T_IF  = 303
T_INDEX  = 307
T_INPUT_PARAMETER  = 3
T_INSERT_METHOD  = 359
T_INT  = 205
T_INTEGER  = 206
T_JSON  = 232
T_KEY  = 308
T_KEY_BLOCK_SIZE  = 346
T_LONGBLOB  = 225
T_LONGTEXT  = 229
T_LOWER_THAN  = 11
T_MATCH  = 332
T_MAX_ROWS  = 360
T_MEDIUMBLOB  = 224
T_MEDIUMINT  = 204
T_MEDIUMTEXT  = 228
T_MEMORY  = 323
T_MIN_ROWS  = 361
T_MINUS  = 12
T_MULTIPLY  = 13
T_NEGATE  = 14
T_NO  = 341
T_NONE  = 1
T_NOT  = 304
T_NULL  = 320
T_NUMERIC  = 212
T_ON  = 336
T_OPEN_CURLY_BRACE  = 16
T_OPEN_PARENTHESIS  = 5
T_PACK_KEYS  = 362
T_PARSER  = 348
T_PARTIAL  = 334
T_PASSWORD  = 363
T_PLUS  = 15
T_PRECISION  = 370
T_PRIMARY  = 311
T_REAL  = 208
T_REFERENCES  = 319
T_RESTRICT  = 339
T_ROW_FORMAT  = 364
T_SEMICOLON  = 18
T_SET  = 231
T_SIMPLE  = 335
T_SMALLINT  = 203
T_SPATIAL  = 310
T_STATS_AUTO_RECALC  = 365
T_STATS_PERSISTENT  = 366
T_STATS_SAMPLE_PAGES  = 367
T_STORAGE  = 318
T_STRING  = 2
T_TABLE  = 302
T_TABLESPACE  = 368
T_TEMPORARY  = 301
T_TEXT  = 227
T_TIME  = 214
T_TIMESTAMP  = 215
T_TINYBLOB  = 222
T_TINYINT  = 202
T_TINYTEXT  = 226
T_UNION  = 369
T_UNIQUE  = 312
T_UNSIGNED  = 325
T_UPDATE  = 337
T_USING  = 343
T_VARBINARY  = 221
T_VARCHAR  = 219
T_WITH  = 347
T_YEAR  = 217
T_ZEROFILL  = 326

Methods

__construct()  : mixed
Creates a new statement scanner object.
getCatchablePatterns()  : array<string|int, mixed>
Lexical catchable patterns.
getNonCatchablePatterns()  : array<string|int, mixed>
Lexical non-catchable patterns.
getType()  : int
Retrieve token type. Also processes the token value if necessary.

Constants

T_AUTO_INCREMENT

public mixed T_AUTO_INCREMENT = 315

T_AVG_ROW_LENGTH

public mixed T_AVG_ROW_LENGTH = 351

T_CLOSE_CURLY_BRACE

public mixed T_CLOSE_CURLY_BRACE = 17

T_CLOSE_PARENTHESIS

public mixed T_CLOSE_PARENTHESIS = 4

T_COLUMN_FORMAT

public mixed T_COLUMN_FORMAT = 317

T_COMPRESSION

public mixed T_COMPRESSION = 353

T_CONNECTION

public mixed T_CONNECTION = 354

T_CONSTRAINT

public mixed T_CONSTRAINT = 306

T_CURRENT_TIMESTAMP

public mixed T_CURRENT_TIMESTAMP = 327

T_DELAY_KEY_WRITE

public mixed T_DELAY_KEY_WRITE = 357

T_ENCRYPTION

public mixed T_ENCRYPTION = 358

T_GREATER_THAN

public mixed T_GREATER_THAN = 10

T_IDENTIFIER

public mixed T_IDENTIFIER = 100

T_INPUT_PARAMETER

public mixed T_INPUT_PARAMETER = 3

T_INSERT_METHOD

public mixed T_INSERT_METHOD = 359

T_KEY_BLOCK_SIZE

public mixed T_KEY_BLOCK_SIZE = 346

T_LOWER_THAN

public mixed T_LOWER_THAN = 11

T_MEDIUMBLOB

public mixed T_MEDIUMBLOB = 224

T_MEDIUMTEXT

public mixed T_MEDIUMTEXT = 228

T_OPEN_CURLY_BRACE

public mixed T_OPEN_CURLY_BRACE = 16

T_OPEN_PARENTHESIS

public mixed T_OPEN_PARENTHESIS = 5

T_REFERENCES

public mixed T_REFERENCES = 319

T_ROW_FORMAT

public mixed T_ROW_FORMAT = 364

T_STATS_AUTO_RECALC

public mixed T_STATS_AUTO_RECALC = 365

T_STATS_PERSISTENT

public mixed T_STATS_PERSISTENT = 366

T_STATS_SAMPLE_PAGES

public mixed T_STATS_SAMPLE_PAGES = 367

T_TABLESPACE

public mixed T_TABLESPACE = 368

Methods

__construct()

Creates a new statement scanner object.

public __construct(string $input) : mixed
Parameters
$input : string

A statement string.

getCatchablePatterns()

Lexical catchable patterns.

protected getCatchablePatterns() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNonCatchablePatterns()

Lexical non-catchable patterns.

protected getNonCatchablePatterns() : array<string|int, mixed>
Return values
array<string|int, mixed>

getType()

Retrieve token type. Also processes the token value if necessary.

protected getType(string &$value) : int
Parameters
$value : string
Return values
int

        
On this page

Search results