fantastic book shows how Prolog-like parser helps Java programs — 3 years ago
I have been writing data-import utilities off and on since the early 1980s.
I have learned, of the most important qualities a file import or host-to-host data transfer utility can have is gooddiagnostics.
An import routine should understand what it is importing, at some level, and use that information to tell the user what is wrong when something goes wrong. Not if – when.
This book introduces a very clever parser written in a mini-Prolog that was programmed in Java. I liked this example a lot on many levels, for many reasons.
The book also has a cute graphics environment that embeds the Prolog interpreter. You write graphics programs using short rules. It is pretty neat.
The one flaw with this book is that the Prolog interpreter in it seems to have disappeared from the web. That is a shame. It was a good one.
It comes on the CD that is included with the book. It would be nice if it was open source and could be downloaded from the web. Or they could at least have simply supplied the binaries & sources in a ZIP archive file.


