AI::Prolog::Parser::PreProcessor - The AI::Prolog Preprocessor


AI-Prolog documentation Contained in the AI-Prolog distribution.

Index


Code Index:

NAME

Top

AI::Prolog::Parser::PreProcessor - The AI::Prolog Preprocessor

SYNOPSIS

Top

 my $program = AI::Prolog::Parser::Preprocessor->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.

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 Contained in the AI-Prolog distribution.

package AI::Prolog::Parser::PreProcessor;
$REVISION = '$Id: PreProcessor.pm,v 1.2 2005/08/06 23:28:40 ovid Exp $';

$VERSION = '0.01';
use strict;
use warnings;

use aliased 'AI::Prolog::Parser::PreProcessor::Math';

sub process {
    my ($class, $prolog) = @_;
    # why the abstraction?  Because I want DCGs in here, too.  Maybe 
    # other stuff ...
    $prolog = Math->process($prolog);
    return $prolog;
}

1;

__END__