A

DynLexRule::action() — Method in class DynLexRule
Gets the callable action or null of undefined.

B

DynLexBuilder::build() — Method in class DynLexBuilder
Builds the lexer based on the previously specified configuration.

C

DynLexLexer::collect() — Method in class DynLexLexer
Scans the entire input and creates an array of DynLexToken objects.
$DynLexStateProperty in class DynLexState
Holds the column on the current line number.
$DynLexTokenProperty in class DynLexToken
Indicates the column on the line where the token has been found.

D

DynLexActionClass in namespace SilentByte\DynLex
Defines valid state actions that are used as return values from lexer action functions.
DynLexBuilderClass in namespace SilentByte\DynLex
Provides a simple way to create and configure a new lexer.
DynLexBuilder::default() — Method in class DynLexBuilder
Creates a new lexer rule whose matches will not be part of the reported tokens.
DynLexLexerClass in namespace SilentByte\DynLex
A dynamically configurable lexer featuring a fluid API.
DynLexRuleClass in namespace SilentByte\DynLex
Represents a single lexer rule consisting of the pattern, tag, and action.
DynLexStateClass in namespace SilentByte\DynLex
Represents the current state of the lexer.
DynLexTokenClass in namespace SilentByte\DynLex
Represents a single token that has been produced by the lexer.
DynLexUtilsClass in namespace SilentByte\DynLex
Defines useful helper functions.
DynLexUtils::dumpTokens() — Method in class DynLexUtils
Outputs the specified list of tokens in a tabular format.

L

$DynLexStateProperty in class DynLexState
Holds the current line number.
$DynLexTokenProperty in class DynLexToken
Indicates the line number where the token has been found.

M

$DynLexTokenProperty in class DynLexToken
Holds all matches that have been found and provides access to captured groups if more than one group has been used.

N

DynLexBuilder::newline() — Method in class DynLexBuilder
Creates a new lexer rule that matches a token representing a line ending, subsequently increasing the internal line counter.
DynLexRule::newline() — Method in class DynLexRule
Indicates whether this rule increases the line number when matched.

O

$DynLexTokenProperty in class DynLexToken
Indicates the start of the token within the input sequence in bytes.

P

DynLexRule::pattern() — Method in class DynLexRule
Gets the modified pattern.
DynLexState::push() — Method in class DynLexState
Pushes a user defined value onto the stack.
DynLexState::pop() — Method in class DynLexState
Removes and returns the top value from the stack.
DynLexState::peek() — Method in class DynLexState
Returns the top-most value on the stack without removing it.

R

DynLexBuilder::rule() — Method in class DynLexBuilder
Creates a new lexer rule based on pattern, tag, and an optional action.
$DynLexTokenProperty in class DynLexToken
Stores the rule that has been matched.

S

DynLexBuilder::skip() — Method in class DynLexBuilder
Creates a new lexer rule whose matches will not be part of the reported tokens.
DynLexLexer::scan() — Method in class DynLexLexer
Scans the entire input and calls the specified callback for each match.

T

DynLexRule::tag() — Method in class DynLexRule
Gets the user defined tag object.
$DynLexTokenProperty in class DynLexToken
Gets the tag of the matching rule for this token.
$DynLexTokenProperty in class DynLexToken
Stores the text that has been matched.

V

$DynLexTokenProperty in class DynLexToken
Stores the value of the matched token.

_

DynLexBuilder::__construct() — Method in class DynLexBuilder
Creates a new builder object with the default configuration.
DynLexLexer::__construct() — Method in class DynLexLexer
Creates the object based on the speicifed lexer rules.
DynLexRule::__construct() — Method in class DynLexRule
Creates the object based on the specified information and modifies the pattern to include required options.
DynLexState::__construct() — Method in class DynLexState
Creates the object with default values.
DynLexToken::__construct() — Method in class DynLexToken
Creates the object based on the specified arguments.