1b39c5158Smillert# subclass for testing customizing & subclassing 2b39c5158Smillert 3b39c5158Smillertpackage MyGrammar; 4b39c5158Smillert 5b39c5158Smillertuse strict; 6*6fb12b70Safresh1use warnings; 7b39c5158Smillert 8*6fb12b70Safresh1use base qw( TAP::Parser::Grammar MyCustom ); 9b39c5158Smillert 10b39c5158Smillertsub _initialize { 11b39c5158Smillert my $self = shift; 12b39c5158Smillert $self->SUPER::_initialize(@_); 13b39c5158Smillert $main::INIT{ ref($self) }++; 14b39c5158Smillert $self->{initialized} = 1; 15b39c5158Smillert return $self; 16b39c5158Smillert} 17b39c5158Smillert 18b39c5158Smillert1; 19