Search code examples
sqlprologtranspiler

prolog to SQL converter


Without thinking to much, it seems to me that a large set of Prolog's functionality could be implemented as relational calculus (a.k.a. SQL).

Has anyone heard of any tools to automatically convert Prolog to SQL?


Solution

  • Recommending:

    https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/prolog/code/io/pl2sql/0.html

    my advice- use Eclipse prolog (http://www.eclipseclp.org/) (not (here) to be confused with prolog in the eclipse IDE).

    I spent hours trying to get the code to compile in 4 other prologs(!) and 4 minutes to compile in eclipse.

    When it works, it's a thing of beauty.

    Credit to Herr Draxler of course