1. The classic approach to testing a compiler is to supply the compiler itself—w

1. The classic approach to testing a compiler is to supply the compiler itself—written in the source language—as the test set. Does this approach satisfy the criterion of syntax-driven testing? 2. (For readers with some familiarity with formal language theory or compiler construction.) Notice that the syntax-driven testing criterion applies to a test domain D consisting of syntactically correct sentences. A compiler, however, should also be tested on incorrect  to of the criterion in order to achieve some completeness even in the compilation of  programs.

You may also like