A

AbstractLexerClass in namespace Doctrine\Common\Lexer
Base class for writing simple lexers, i.e. for creating small DSLs.

G

AbstractLexer::getInputUntilPosition() — Method in class AbstractLexer
Retrieve the original lexer's input until a given position.
AbstractLexer::glimpse() — Method in class AbstractLexer
Peeks at the next token, returns it and immediately resets the peek.
AbstractLexer::getLiteral() — Method in class AbstractLexer
Gets the literal for a given token.
AbstractLexer::getModifiers() — Method in class AbstractLexer
Regex modifiers
AbstractLexer::getCatchablePatterns() — Method in class AbstractLexer
Lexical catchable patterns.
AbstractLexer::getNonCatchablePatterns() — Method in class AbstractLexer
Lexical non-catchable patterns.
AbstractLexer::getType() — Method in class AbstractLexer
Retrieve token type. Also processes the token value if necessary.

I

AbstractLexer::isNextToken() — Method in class AbstractLexer
Checks whether a given token matches the current lookahead.
AbstractLexer::isNextTokenAny() — Method in class AbstractLexer
Checks whether any of the given tokens matches the current lookahead.
AbstractLexer::isA() — Method in class AbstractLexer
Checks if given value is identical to the given token.

L

$AbstractLexer#lookaheadProperty in class AbstractLexer
The next token in the input.

M

AbstractLexer::moveNext() — Method in class AbstractLexer
Moves to the next token in the input string.

P

AbstractLexer::peek() — Method in class AbstractLexer
Moves the lookahead token forward.

R

AbstractLexer::reset() — Method in class AbstractLexer
Resets the lexer.
AbstractLexer::resetPeek() — Method in class AbstractLexer
Resets the peek pointer to 0.
AbstractLexer::resetPosition() — Method in class AbstractLexer
Resets the lexer position on the input to the given position.

S

AbstractLexer::setInput() — Method in class AbstractLexer
Sets the input data to be tokenized.
AbstractLexer::skipUntil() — Method in class AbstractLexer
Tells the lexer to skip input tokens until it sees a token with the given value.
AbstractLexer::scan() — Method in class AbstractLexer
Scans the input string for tokens.

T

$AbstractLexer#tokenProperty in class AbstractLexer
The last matched/seen token.