Asking because you may never know unless you ask, and without asking the next thing you know a decade has passed before you know, and knowing to ask is even better than not knowing what to ask. If that makes sense, I should give you a badge.
So I have been in the land of EDCGs for a few days and creating steps on how to covert code with accumulators, code with DCGs, code with DCGs and accumulators, code with DCGs, accumulators and end of string to EDCGs and was wondering if someone has not already been there and written some code that can take standard code and convert it to EDCGs so I don’t have to.
Personal Notes
AFAIK EDCGs started with the Aquarius compiler. See thesis of Peter Lodewijk Van Roy
The thesis is available as two PDF files:
- Main text and references (648K)
- [Appendixes (which include full commented source code)] (http://www.info.ucl.ac.be/people/PVR/Thesis/ThesisAppendix.pdf) (579K)
References
Extended DCGs in Prolog (James Cash blog)
Package “edcg” - Has syntax for use with SWI-Prolog
Examples - Examples from SWI-Prolog package EDCG
Prolog and Natural-Language Analysis by Fernando C. N. Pereira and Stuart M. Shieber (pdf)
A Unified Approach to Global Program Optimization by Gary A. Kildall (pdf)
Abstract Interpretation: ‘A Unified Lattice Model for Static Analysis Of Programs by Construction or Approximation of Fixpoints’ by Patrick Cousotand Radhia Cousot (pdf)
Towards Structured State Threading in Prolog by Dragan Ivanovic, José F. Morales, Manuel Carro, and Manuel Hermenegildo (pdf)
Lattice Theory by Garrett Birkhoff (pdf)