Module GenerationEngine.grammar_transformation

Transformation module.

Functions

grammarTransformations Transformation function.

Tables

algConst Transformation algorithm constants.

Local Functions

printOnly Just print the grammar rules.
simplifyOOMS Remove the OOMS construction from the grammar
checkIndex Verify the Index info on the grammar nodes.
simplifyNT Simplify the nonterminal set by replace each of them by terminal constants.
calcMinTreeHeight Calculate the minimal tree height for each production rule in the grammar
simplifyGrammar Simplify the grammar eliminating the unreachable symbols from startSymbol.
printGrammarInfo Simplify the grammar eliminating the unreachable symbols from startSymbol.
cacheInitGrammar Persist the final grammar to provide a cache for the grammar.


Functions

grammarTransformations
Transformation function.

Parameters:

  • G
  • runConfig
  • gtAlgs

Tables

algConst
Transformation algorithm constants.

Local Functions

printOnly
Just print the grammar rules.
simplifyOOMS
Remove the OOMS construction from the grammar
checkIndex
Verify the Index info on the grammar nodes.
simplifyNT
Simplify the nonterminal set by replace each of them by terminal constants.

Parameters:

  • lstNT
calcMinTreeHeight
Calculate the minimal tree height for each production rule in the grammar
simplifyGrammar
Simplify the grammar eliminating the unreachable symbols from startSymbol.
printGrammarInfo
Simplify the grammar eliminating the unreachable symbols from startSymbol.
cacheInitGrammar
Persist the final grammar to provide a cache for the grammar.
generated by LDoc 1.4.5 Last updated 2017-02-24 13:19:22