Parser
class Parser (View source)
The Fusion Parser
Properties
static | $reservedParseTreeKeys | Reserved parse tree keys for internal usage. |
|
protected DslFactory | $dslFactory | ||
protected ParserCache | $parserCache |
Methods
array
parse(string $sourceCode, string|null $contextPathAndFilename = null, array $mergedArrayTreeUntilNow = [])
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
handleDslTranspile(string $identifier, string $code)
No description
getFusionFile(string $sourceCode, string|null $contextPathAndFilename)
No description
Details
array
parse(string $sourceCode, string|null $contextPathAndFilename = null, array $mergedArrayTreeUntilNow = [])
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
handleDslTranspile(string $identifier, string $code)
No description
protected MergedArrayTreeVisitor
getMergedArrayTreeVisitor(MergedArrayTree $mergedArrayTree)
No description
protected FusionFile
getFusionFile(string $sourceCode, string|null $contextPathAndFilename)
No description