Prototype implementation of GrammarDerivationRepresentation.