Skip to content
Converts Prolog algorithms to List Prolog algorithms
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
la_strings.pl
p2lpconverter.pl
test1.pl

README.md

Prolog-to-List-Prolog

Converts Prolog algorithms to List Prolog algorithms

Install: Load each file into SWI-Prolog using ['file']. (given file.pl)

Run:

Convert Prolog code to List Prolog code by running: p2lpconverter. Input: a. b(C,D). ef(G):-(h(I)->true;true),!.

Output: [[[a,,]],[[b,,],[c,d]],[[ef,,],[g],:-,[[[[h,,],[i]],->,true,or,true],!]]]

Pretty-print List Prolog algorithm by typing e.g.: pp0([[[a,,]],[[b,,],[c,d]],[[ef,,],[g],(:-),[[[[h,,],[i]],->,true,or,true],!]]]). Output: [ [[a,,]], [[b,,],[c,d]], [[ef,,],[g],(:-), [ [[[h,,],[i]],->,true,or,true], ! ]] ]

You can’t perform that action at this time.