DynamicParseTreeCreator.createParseTreeCombined

Create a tree node for multiple productions, which are treated as the same. This is used with the generator option --combinedreduce.

template createParseTreeCombined(SymbolID nonterminalID, productionIDs...)
NonterminalType!(allProductions[productionIDs[0] - startProductionID].nonterminalID.id)
createParseTreeCombined
(
T...
)

Members

Functions

createParseTreeCombined
NonterminalType!(allProductions[productionIDs[0] - startProductionID].nonterminalID.id) createParseTreeCombined(Location firstParamStart, Location lastParamEnd, T params)
Undocumented in source. Be warned that the author may not have intended to support it.

Parameters

nonterminalID

ID of the nonterminal starting at GrammarModule.startNonterminalID.

productionIDs

IDs of the productions starting at GrammarModule.startProductionID. all have to be for the nonterminal with ID nonterminalID.

firstParamStart

Location at the start of this subtree.

lastParamEnd

Location at the end of this subtree.

params

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

Meta