Lines Matching refs:lexer
16 * Represents an executor for a sequence of lexer actions which traversed during
17 * the matching operation of a lexer rule (token).
19 * The executor tracks position information for position-dependent lexer actions
21 * not cause bloating of the {@see DFA} created for the lexer.
53 * the lexer while matching
60 * @param LexerAction $lexerAction The lexer action to
83 * for position-dependent lexer actions.
85 * Normally, when the executor encounters lexer actions where
89 * for efficient DFA representation of lexer actions which appear at the end
90 * of a lexer rule, even when the lexer rule matches a variable number of
94 * from the token start index is assigned to all position-dependent lexer
97 * lexer actions which appear in the middle of tokens remains efficient due
102 * position-dependent lexer actions, the method returns `this`.
105 * lexer actions which do not already have offsets assigned.
108 * for all position-dependent lexer actions.
133 * Gets the lexer actions to be executed by this executor.
135 * @return array<LexerAction> The lexer actions to be executed by this executor.
152 * @param Lexer $lexer The lexer instance.
164 public function execute(Lexer $lexer, CharStream $input, int $startIndex) : void
181 $lexerAction->execute($lexer);