Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trwyant/perl-ppix-regexp
Parse regular expressions
https://github.com/trwyant/perl-ppix-regexp
parser perl perl-module
Last synced: about 1 month ago
JSON representation
Parse regular expressions
- Host: GitHub
- URL: https://github.com/trwyant/perl-ppix-regexp
- Owner: trwyant
- Created: 2015-04-03T02:27:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-03T13:06:50.000Z (11 months ago)
- Last Synced: 2024-06-18T17:06:02.307Z (6 months ago)
- Topics: parser, perl, perl-module
- Language: Perl
- Size: 3.68 MB
- Stars: 2
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
- Contributing: CONTRIBUTING
- License: LICENSES/Artistic
Awesome Lists containing this project
README
PPIx-Regexp is Copyright (C) 2009-2023 by Thomas R. Wyant, III
DESCRIPTION
This package parses regular expressions as they appear in Perl scripts,
generating a structure similar to the structure generated by PPI when it
parses a Perl script, and navigable in much the same way.The PPIx::Regexp object is instantiated using either new() or
new_from_cache(). Either way, you must pass it a regular expression,
either as a string or as one of the three relevant PPI objects:
PPI::Token::StringLike::Regexp, PPI::Token::Regexp::Match, or
PPI::Token::Regexp::Substitute. In the case of new_from_cache(), only
one PPIx::Regexp object will be generated from a given PPI object;
subsequent calls with the same PPI object will return the same
PPIx::Regexp object.See the eg directory for samples.
INSTALLATION
This module is installable by either of the two usual incantations:
tar -xzf PPIx-Regexp-9.999.tar.gz
cd PPIx-Regexp-9.999
perl Makefile.PL
make
make test
sudo make installor
tar -xzf PPIx-Regexp-9.999.tar.gz
cd PPIx-Regexp-9.999
perl Build.PL
./Build
./Build test
sudo ./Build installOf course, since it is pure Perl, in desperation you can simply drop the
files from the lib directory of the distribution into the appropriate
@INC directory.LICENSING INFORMATION
This package is free software; you can redistribute it and/or modify it
under the same terms as Perl 5.10.0. For more details, see the full text
of the licenses in the directory LICENSES.This program is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.