DynamicParseTreeCreator.createParseTree

Create a tree node for one production.

  1. NonterminalType!(allProductions[productionID - startProductionID].nonterminalID.id) createParseTree(Location firstParamStart, Location lastParamEnd, T params)
    class DynamicParseTreeCreator(alias GrammarModule, Location_, alias LocationRangeImpl = LocationRangeStartLength)
    NonterminalType!(allProductions[productionID - startProductionID].nonterminalID.id)
    createParseTree
    (
    SymbolID productionID
    T...
    )
    if (
    allProductions[productionID - startProductionID].symbols.length > 0
    )
  2. NonterminalType!(allProductions[productionID - startProductionID].nonterminalID.id) createParseTree(Location firstParamStart, Location lastParamEnd)

Parameters

productionID

ID of the production starting at GrammarModule.startProductionID.

firstParamStart Location

Location at the start of this subtree.

lastParamEnd Location

Location at the end of this subtree.

params T

Childs for this subtree, which were previously also created by createParseTree.

Meta