The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.