Tokenizer
class Tokenizer
Simple lexical analyser.
Methods
__construct(array $patterns, string $flags = '')
No description
static array
getCoordinates(string $text, int $offset)
Returns position of token in input string.
Details
at line 27
__construct(array $patterns, string $flags = '')
No description
at line 38
Stream
tokenize(string $input)
Tokenizes string.
at line 76
static array
getCoordinates(string $text, int $offset)
Returns position of token in input string.