NAME

GTM::Preprocessor - Generic frontend for preprocessing GT.M Sources


SYNOPSIS

  use GTM::Preprocessor;
  my $p = new GTM::Preprocessor;
  $p->add("Cache"); # add the GTM::Preprocessor::Cache backend
  my $newcontent = $p->run($content);
  
The preprocessor-engine can be embedded into GT.M
so all sources you compile go to this stack

There is also a gtmpp script which allows you to preprocess outside of GT.M


DESCRIPTION

GTM::Preprocessor is the base class for preprocessing M-Code.


FUNCTIONS

my $pp = new GTM::Preprocessor ([opt => value[, opt => value]])
creates a new GTM::Preprocessor object. The following options are currently supported:
 verbose => [0|1]  - set verbose level (0 = quiet)

my $parsed = $pp->run($content, [$filename])
runs all stacked preprocessors and returns content.

my $status = $pp->add($preprocessor, %args)
Add a backend preprocessor.
  $status is 0 if it worked,
             1 if the requested preprocessor was not found
             2 if the requested preprocessor returned an error
               while initialization

VARIABLES

@MINC - include-path for *.inc Files

EXPORT


BUGS


SEE ALSO

the GTM manpage, the GTM::Perl manpage, the GTM::GlobalTie manpage, the GTM::Preprocessor::Cache manpage.

Cac, the Cac::ObjectScript manpage, the Cac::Global manpage, the Cac::Routine manpage, the Cac::Util manpage, the Cac::Bind manpage.


AUTHOR

Stefan Traby, <stefan@hello-penguin.com> http://www.hello-penguin.com/gtm-perl


COPYRIGHT AND LICENSE

 Copyright (C) 2004 by Stefan Traby <stefan@hello-penguin.com>
 Copyright (C) 2004 by KW-Computer Ges.m.b.H., Graz, Austria

This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL).

In addition to this license

    Sanchez Computer Associates, Inc.
    40 Valley Stream Parkway
    Malvern, PA 19355, USA

has the non-exclusive right to do what ever they want with this code.