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