Icon for Dimension.orgIcon for TalentIcon for ToolsIcon for Doorways.org
Icon for ToolsIcon for Perl Tools

DoxyFilt: Script/Filter/Filter.pm Source File

  • Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List

Script/Filter/Filter.pm

Go to the documentation of this file.
00001 package Doxygen::Script::Filter;
00002 
00003 =head1 NAME
00004 
00005 Doxygen::Script::Filter - Perl extension for generating Doxygen documentation
00006 
00007 =head1 SYNOPSIS
00008 
00009 Generally this class will be instantiated:
00010     
00011     my  $filter = new Doxygen::Script::Filter($path);
00012 
00013 and used within one of the other Doxygen:: internal classes.
00014 
00015 The user will normally invoke this filter by aliasing and configuring
00016 it during an invocation of DoxyFilt.pl.  DoxyFilt.pl takes useful
00017 default settings from the Doxygen::Source module.
00018 
00019 By default, Doxygen::Source pre-configures both Windows batch files
00020 and *NIX shell scripts.  The equivalent DoxyFilt.pl command-line
00021 arguments would be:
00022 
00023     DoxyFilt.pl --alias   Batch=Script
00024                 --docs    Batch=qr(\.(?:bat|cmd)$)i
00025                 --comment Batch=qr(^\s*rem ?(.*)$)im
00026                 --alias   Shell=Script
00027                 --docs    Shell=qr(\.(?:ba|c|k|z)?sh$)i
00028                 --comment Shell=qr(^\s*#{2,3}(?!#) ?(.*)$)m
00029                 --check   Shell=qr(^#!/bin/(?:ba|c|k|z)?sh\b)
00030 
00031 allowing, of course, for the quoting of characters to get past the
00032 command-line interpreter and the fact that the current codebase probably
00033 doesn't handle the regular expression terminal qr()im flags (oops).
00034        
00035 =head1 ABSTRACT
00036 
00037 Simplistic filter for scripts, whether DOS/Windows
00038 batch files or *NIX shell scripts.
00039 
00040 =head1 DESCRIPTION
00041 
00042 Generates a Doxygen file comment block.
00043 Pulls out whatever comments are marked via the
00044 basic comment pattern mechanism supported by C<Doxygen::Source>.
00045 
00046 May at some point create a script group and mark therein.
00047 
00048 =head1 METHODS
00049 
00050 =over
00051 
00052 =cut
00053 
00054 use     5.005;  # just to pick something, but not really tested
00055 use     strict;
00056 use     warnings;
00057 
00058 use     base qw(Doxygen::Filter);
00059 
00060 our $VERSION = '0.01';
00061 
00062 ###########################################################################
00063 ###########################################################################
00064 
00065 =item   C<parse($self, $text, $source)>
00066 
00067 Parse a source file.
00068 
00069 Attach results (C<Doxygen::Item> objects) to C<Doxygen::Source> object.
00070 
00071 =cut
00072 
00073 sub parse       # $self, $text, $source
00074 {
00075     my  $self = shift;
00076     
00077     $self->parseCmnts(@_);
00078 }
00079 
00080 ###########################################################################
00081 ###########################################################################
00082 
00083 1
00084 
00085 __END__
00086 
00087 =back
00088 
00089 =head1 SEE ALSO
00090 
00091 DoxyFilt.pl Doxygen::Filter
00092 
00093 =head1 AUTHOR
00094 
00095 Marc M. Adkins, L<mailTo:Perl@Doorways.org>
00096 
00097 =head1 COPYRIGHT AND LICENSE
00098 
00099 Copyright 2004-2010 by Marc M. Adkins
00100 
00101 This library is free software; you can redistribute it and/or modify
00102 it under the same terms as Perl itself.
00103 
00104 =cut

Generated on Mon Dec 27 2010 15:15:39 for DoxyFilt by  doxygen 1.7.1

www.dimension.org logo

(C)opyright 1998 - 2012 Dimension.org

WebMaster