Token
namespace TYPO3\
Table of Contents
Interfaces
- TokenInterface
- A readonly token: Each line of TypoScript is split into a list of lines consisting of tokens by the tokenizers.
- TokenStreamInterface
- A generic stream of tokens used in single LineInterface lines.
Classes
- AbstractToken
- Main implementation of a TokenInterface.
- AbstractTokenStream
- A generic implementation of TokenStreamInterface.
- ConstantAwareTokenStream
- A list of single T_VALUE, T_NEWLINE and T_CONSTANT tokens. This is only created for LineIdentifierAssignment lines if there is at least one T_CONSTANT token in the assignment that needs to be evaluated when string'ified by the AST-builder.
- IdentifierToken
- A special token if this token is a T_IDENTIFIER token: With a line like "foo = bar", "foo" is created as TokenIdentifier TokenInterface (as opposed to Token) having a TokenType::T_IDENTIFIER token.
- IdentifierTokenStream
- A list of single identifier (!) tokens: TokenType::T_IDENTIFIER, and only of those.
- Token
- A casual token created from TypoScript source: When having a TypoScript line like "# a comment", then a LineComment is created having a token "T_COMMENT_ONELINE_HASH" and value "# a comment" as assigned TokenStream.
- TokenStream
- A list of single tokens. These are typically used in TokenLines: A TypoScript line consists of one or more streams of tokens, depending on the line type.
Enums
- TokenType
- Each TokenInterface instance is a type of this Enum.