Compiler testing using a sentence generator
Augusto Celentano, Stefano Crespi Reghizzi, Pierluigi Della Vigna, Carlo Ghezzi, Giuseppe Granata, F. Savoretti · Software Practice and Experience · 1980
Abstract A system for assisting in the testing phase of compilers is described. The definition of the language to be compiled drives an automatic sentence generator. The language is described by an extended BNF grammar which can be augmented by actions to ensure contextual congruence, e.g. between definition and use of identifiers. For deep control of the structure of the produced sample the grammar can be described by step‐wise refinements: the generator is iteratively applied to each level of refinement, producing at last compilable, complete programs. The implementation is described and some experimental results are reported concerning PLZ, MINIPL and some other languages.