‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\AST\AstBuilder Class Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\AST\AstBuilder:
TYPO3\CMS\Core\TypoScript\AST\AbstractAstBuilder TYPO3\CMS\Core\TypoScript\AST\AstBuilderInterface

Public Member Functions

 __construct (EventDispatcherInterface $eventDispatcher,)
 
 build (LineStream $lineStream, RootNode $ast, array $flatConstants=[])
 

Private Member Functions

 handleIdentifierAssignmentLine (IdentifierAssignmentLine $line, CurrentObjectPath $currentObjectPath)
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\AST\AbstractAstBuilder
 handleIdentifierUnsetLine (IdentifierUnsetLine $line, CurrentObjectPath $currentObjectPath)
 
 handleIdentifierCopyLine (IdentifierCopyLine $line, RootNode $rootNode, CurrentObjectPath $currentObjectPath)
 
 handleIdentifierReferenceLine (IdentifierReferenceLine $line, CurrentObjectPath $currentObjectPath)
 
 getOrAddNodeFromIdentifierStream (CurrentObjectPath $currentObjectPath, IdentifierTokenStream $tokenStream)
 
 evaluateValueModifier (Token $functionNameToken, ?Token $functionArgumentToken, ?string $originalValue)
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\TypoScript\AST\AbstractAstBuilder
array $flatConstants = []
 
EventDispatcherInterface $eventDispatcher
 

Detailed Description

The main TypoScript AST builder.

This creates a tree of Nodes, starting with the root node. Each node can have children. The implementation basically iterates a LineStream created by the tokenizers, and creates AST depending on the line type. It handles all the different operator lines like "=", "<" and so on.

: Internal AST structure.

Definition at line 44 of file AstBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\TypoScript\AST\AstBuilder::__construct ( EventDispatcherInterface  $eventDispatcher)

Member Function Documentation

◆ build()

◆ handleIdentifierAssignmentLine()