-
Notifications
You must be signed in to change notification settings - Fork 15
SubGrammar
grammarware edited this page Jan 21, 2013
·
6 revisions
SubGrammar (G,N) is a grammar mutation that constructs a new grammar from all the production rules of the input grammar G, which define the given root nonterminal N and all nonterminals it eventually references. If N already was the only root, then the resulting subgrammar is equal to G in the sense that only dead (unreachable) nonterminals are dropped.
It has been implemented in Rascal, Python and as a command line tool.