Parser
class Parser (View source)
The Fusion Parser
Properties
static list<string> | $reservedParseTreeKeys | Reserved parse tree keys for internal usage. |
|
protected DslFactory | $dslFactory | ||
protected ParserCache | $parserCache |
Methods
parseFromSource(FusionSourceCodeCollection $sourceCode)
Parses the given Fusion source code, resolves includes and returns a merged array tree as the result.
array
parse(string $sourceCode, string|null $contextPathAndFilename = null, array $mergedArrayTreeUntilNow = [])
deprecated
Parses the given Fusion source code, resolves includes and returns a merged array tree as the result.
void
handleFileInclude(MergedArrayTree $mergedArrayTree, string $filePattern, string|null $contextPathAndFilename)
No description
mixed
handleDslTranspile(string $identifier, string $code)
No description
Details
FusionConfiguration
parseFromSource(FusionSourceCodeCollection $sourceCode)
Parses the given Fusion source code, resolves includes and returns a merged array tree as the result.
array
parse(string $sourceCode, string|null $contextPathAndFilename = null, array $mergedArrayTreeUntilNow = [])
deprecated
deprecated
Parses the given Fusion source code, resolves includes and returns a merged array tree as the result.
protected void
handleFileInclude(MergedArrayTree $mergedArrayTree, string $filePattern, string|null $contextPathAndFilename)
No description
protected mixed
handleDslTranspile(string $identifier, string $code)
No description
protected MergedArrayTreeVisitor
getMergedArrayTreeVisitor(MergedArrayTree $mergedArrayTree)
No description
protected FusionFile
parseToFusionFile(FusionSourceCode $fusionCode)
No description