Constants.pm
Go to the documentation of this file.
1 #============================================================= -*-Perl-*-
2 #
3 # Pod::POM::Constants
4 #
5 # DESCRIPTION
6 # Constants used by Pod::POM.
7 #
8 # AUTHOR
9 # Andy Wardley <abw@kfs.org>
10 # Andrew Ford <a.ford@ford-mason.co.uk>
11 #
12 # COPYRIGHT
13 # Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
14 # Copyright (C) 2009 Andrew Ford. All Rights Reserved.
15 #
16 # This module is free software; you can redistribute it and/or
17 # modify it under the same terms as Perl itself.
18 #
19 # REVISION
20 # $Id: Constants.pm 78 2009-08-20 20:44:53Z ford $
21 #
22 #========================================================================
23 
24 package BASIS::Pod::POM::Constants;
25 
26 require 5.004;
27 
28 use strict;
29 
30 use vars qw( $VERSION @SEQUENCE @STATUS @EXPORT_OK %EXPORT_TAGS );
31 use parent qw( Exporter );
32 
33 $VERSION = sprintf("%d.%02d", q$Revision: 1.1.1.1 $ =~ /(\d+)\.(\d+)/);
34 @SEQUENCE = qw( CMD LPAREN RPAREN FILE LINE CONTENT );
35 @STATUS = qw( IGNORE REDUCE REJECT );
36 @EXPORT_OK = ( @SEQUENCE, @STATUS );
37 %EXPORT_TAGS = (
38  status => [ @STATUS ],
39  seq => [ @SEQUENCE ],
40  all => [ @STATUS, @SEQUENCE ],
41 );
42 
43 # sequence items
44 use constant CMD => 0;
45 use constant LPAREN => 1;
46 use constant RPAREN => 2;
47 use constant FILE => 3;
48 use constant LINE => 4;
49 use constant CONTENT => 5;
50 
51 # node add return values
52 use constant IGNORE => 0;
53 use constant REDUCE => 1;
54 use constant REJECT => 2;
55 
56 
57 1;
58 
59 =head1 NAME
60 
61 Pod::POM::Constants
62 
63 =head1 DESCRIPTION
64 
65 Constants used by Pod::POM.
66 
67 =head1 AUTHOR
68 
69 Andy Wardley E<lt>abw@kfs.orgE<gt>
70 
71 Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt>
72 
73 =head1 COPYRIGHT AND LICENSE
74 
75 Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
76 
77 Copyright (C) 2009 Andrew Ford. All Rights Reserved.
78 
79 This module is free software; you can redistribute it and/or
80 modify it under the same terms as Perl itself.
81 
82 =cut