PrologHub

How to write a compiler or interpreter in Prolog

2019-07-26
Robert Laing

An example of using Prolog's definite clause grammar to write a compiler for a Pascal-like programing language. The example is taken from the open access textbook: "The Art of Prolog".


Visit website

Tags: compiler lexing dcg_1