AI::Prolog 0.7

Ovid on 2005-06-20T08:02:06

AI::Prolog 0.7 has been uploaded to the CPAN. A quick summary of the (many) enhancements:

  • Added math preprocessor to allow syntactically correct Prolog math. This transforms proper Prolog math into internal predicates the parser recognizes:
    X is N + 1. % is(X, plus(N, 1)).
  • Added anonymous variables: foo(bar, _, baz).
  • Parsing errors now report the line number of the error.
  • Added new predicates:
    • consult/1
    • listing/1
    • ne/2
  • Updated the license information display for aiprolog shell.
  • Modified listing/0 to not show builtins.
  • Pushed all parsing back to the Parser class. No more parsing in TermList and Term.
  • Added Test::Exception to the PREREQ_PM (thanks to rjray for pointing that out).
  • Updated the docs and examples.

Incidentally, if you've been using the shell, this now means that you can consult files directly in the shell rather than doing one file at a time one the command line.

Oh, and over 130 new tests.