File: Parse.pm

package info (click to toggle)
libcss-perl 1.09-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 980 kB
  • sloc: perl: 13,716; makefile: 2
file content (46 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package CSS::Parse;

$VERSION = 1.01;

use strict;
use warnings;

# Create an empty object
sub new {
	my $class = shift;
	my $self = bless {}, $class;
	
	$self->{parent} = undef;

	return $self;
}

# The main parser
sub parse_string {
	my $self = shift;
	my $string = shift;

	die("CSS::Parse is not a valid parser! Use a subclass instead (CSS::Parse::*)\n");
}

1;

__END__

=head1 NAME

CSS::Parse - Template class for CSS parser modules

=head1 DESCRIPTION

This module should not be used directly. Instead, use the CSS::Parse::* modules.

=head1 AUTHOR

Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>

=head1 SEE ALSO

L<CSS>

=cut