> ... Definitional interpreters, compilers, and other models of computation are defined in a systematic way as Prolog programs, and as a result, formal descriptions become running prototypes that can be tested and modified ... These programs can be extended in straightforward ways into tools such as analyzers, tracers and debuggers.
Also "Logic Programming and Compiler Writing" By David Warren (and the work that followed on.)
http://www.ep.liu.se/ecp/012/004/ecp012004.pdf
> ... Definitional interpreters, compilers, and other models of computation are defined in a systematic way as Prolog programs, and as a result, formal descriptions become running prototypes that can be tested and modified ... These programs can be extended in straightforward ways into tools such as analyzers, tracers and debuggers.
Also "Logic Programming and Compiler Writing" By David Warren (and the work that followed on.)