PPIx::Regexp::Token::Whitespace - Represent whitespace


PPIx-Regexp documentation Contained in the PPIx-Regexp distribution.

Index


Code Index:

NAME

Top

PPIx::Regexp::Token::Whitespace - Represent whitespace

SYNOPSIS

Top

 use PPIx::Regexp::Dumper;
 PPIx::Regexp::Dumper->new( 'qr{ foo }smx' )
     ->print();

INHERITANCE

Top

PPIx::Regexp::Token::Whitespace is a PPIx::Regexp::Token.

PPIx::Regexp::Token::Whitespace has no descendants.

DESCRIPTION

Top

This class represents whitespace. It will appear inside the regular expression only if the /x modifier is present, but it may also appear between the type and the opening delimiter (e.g. qr {foo} or after the regular expression in a bracketed substitution (e.g. s{foo} {bar}).

METHODS

Top

This class provides no public methods beyond those provided by its superclass.

SUPPORT

Top

Support is by the author. Please file bug reports at http://rt.cpan.org, or in electronic mail to the author.

AUTHOR

Top

Thomas R. Wyant, III wyant at cpan dot org

COPYRIGHT AND LICENSE

Top


PPIx-Regexp documentation Contained in the PPIx-Regexp distribution.
package PPIx::Regexp::Token::Whitespace;

use strict;
use warnings;

use base qw{ PPIx::Regexp::Token };

our $VERSION = '0.020';

sub significant {
    return;
}

sub whitespace {
    return 1;
}

# Return true if the token can be quantified, and false otherwise
# sub can_be_quantified { return };

# Objects of this class are generated either by the tokenizer itself
# (when scanning for delimiters) or by PPIx::Regexp::Token::Literal (if
# it hits a match for \s and finds the regular expression has the /x
# modifier asserted.

1;

__END__

# ex: set textwidth=72 :