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


AI-Prolog documentation  | view source Contained in the AI-Prolog distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Top

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

Top

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

Reverse the name to email me.

COPYRIGHT AND LICENSE

Top


AI-Prolog documentation  | view source Contained in the AI-Prolog distribution.