Tokenizer
class Tokenizer
internal |
Simple lexical analyser.
Constants
VALUE |
|
OFFSET |
|
TYPE |
|
Methods
__construct(array $patterns, string $flags = '')
No description
array
tokenize(string $input)
Tokenizes string.
static array
getCoordinates(string $text, int $offset)
Returns position of token in input string.
Details
at line 37
__construct(array $patterns, string $flags = '')
No description
at line 48
array
tokenize(string $input)
Tokenizes string.
at line 86
static array
getCoordinates(string $text, int $offset)
Returns position of token in input string.
Traits
Better OOP experience.