Douglas Wilson > AI-Prolog > AI::Prolog::Parser::PreProcessor::Math

Download:
AI-Prolog-0.741.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

AI::Prolog::Parser::PreProcessor::Math - The AI::Prolog math macro

SYNOPSIS ^

 my $program = AI::Prolog::Parser::PreProcessor::Math->process($prolog_text).

DESCRIPTION ^

This code reads in the Prolog text and rewrites it to a for that is suitable for the AI::Prolog::Parser to read. Users of AI::Prolog should never need to know about this.

TODO ^

Constant folding for performance improvment. No need to internally have is(X, plus(3, 4)) when I can do is(X, 5). It shouldn't be too hard.

Figure out how to preserve line number.

AUTHOR ^

Curtis "Ovid" Poe, <moc tod oohay ta eop_divo_sitruc>

Reverse the name to email me.

COPYRIGHT AND LICENSE ^

Copyright 2005 by Curtis "Ovid" Poe

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: