ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/SimpleDoc.pm
(Generate patch)

Comparing COMP/SCRAM/src/ActiveDoc/SimpleDoc.pm (file contents):
Revision 1.4 by sashby, Tue Dec 4 19:24:04 2001 UTC vs.
Revision 1.5 by sashby, Fri Dec 10 13:41:36 2004 UTC

# Line 106 | Line 106 | sub verbose {
106   sub parse {
107          my $self=shift;
108          $parselabel=shift;
109
109          my $file=$self->filetoparse();
110 +        
111          if ( -f $file ) {
112            if ( exists $self->{parsers}{$parselabel} ) {
113              $self->verbose("Parsing $parselabel in file $file");
# Line 124 | Line 124 | sub parse {
124          }
125   }
126  
127 + sub parsefilelist
128 +   {
129 +   my $self=shift;
130 +   my $parselabel=shift;
131 +   my ($filenames)=@_;
132 +
133 +   if ( exists $self->{parsers}{$parselabel} )
134 +      {
135 +      $self->verbose("ParsingFileList: Label = $parselabel (files = ".join(",",@$filenames)." ");
136 +      $self->{currentparsename}=$parselabel;
137 +      $self->{currentparser}=$self->{parsers}{$parselabel};
138 +      $self->{parsers}{$parselabel}->parsefilelist($filenames);
139 +      delete $self->{currentparser};
140 +      $self->{currentparsename}="";
141 +      $self->verbose("ParseFileList $parselabel Complete");
142 +      }
143 +   else
144 +      {
145 +      $self->error("Cannot parse \"$parselabel\" - Unknown parser!!");
146 +      }
147 +   }
148 +
149   sub currentparsename {
150          my $self=shift;
151          @_?$self->{currentparsename}=shift

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines