AI::Prolog 0.64

Ovid on 2005-05-10T16:19:34

I've released AI::Prolog 0.64 which is on its way to a mirror near you. I found I needed to do that prior to my talk tomorrow in order to make it easier to pass data from Perl to Prolog and back again. The draft of the talk, written using S5 (thanks for the heads up on that, folks), is fairly rough and fits the screen of my iBook, so it might look poor on smaller resolutions.

use AI::Prolog 0.64;

my $prolog = AI::Prolog->new(<<"END_PROLOG");
  append([], X, X).
  append([W|X], Y, [W|Z]) :- append(X, Y, Z).
END_PROLOG

my $list = $prolog->list(qw/foo bar 7 baz/); # <-- helper methods!
$prolog->query("append(X,Y,[$list]).");      #     make life easy
while (my $results = $prolog->results) {
    print "@$results\n";
}

Meanwhile, I believe the new parser is almost done, but I have no time to work on it. Richard Freytag, however, has done admirable work. The rough cut he's shown me is quite advanced.