AI::Prolog::Parser::PreProcessor::Math - The AI::Prolog math macro
my $program = AI::Prolog::Parser::PreProcessor::Math->process($prolog_text).
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.
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.
is(X, plus(3, 4))
is(X, 5)
Figure out how to preserve line number.
Curtis "Ovid" Poe, <moc tod oohay ta eop_divo_sitruc>
Reverse the name to email me.
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.
To install AI::Prolog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::Prolog
CPAN shell
perl -MCPAN -e shell install AI::Prolog
For more information on module installation, please visit the detailed CPAN module installation guide.