The grammar code by itself represents important information in that it encodes formalizations of linguistic phenomena (in a particular linguistic framework).
users of the grammar are not only interested in the pure functionality (the input-output behaviour) of a grammar module.