Debian Codegraph @

debian/control

raw
1 Source: libregexp-grammars-perl
2 Maintainer: Debian Perl Group <[email protected]>
3 Uploaders: Salvatore Bonaccorso <[email protected]>
4 Section: perl
5 Testsuite: autopkgtest-pkg-perl
6 Priority: optional
7 Build-Depends: debhelper-compat (= 13),
8 libmodule-build-perl
9 Build-Depends-Indep: libmoose-perl <!nocheck>,
10 libtest-pod-perl <!nocheck>,
11 perl
12 Standards-Version: 4.6.1
13 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libregexp-grammars-perl
14 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libregexp-grammars-perl.git
15 Homepage: https://metacpan.org/release/Regexp-Grammars
16 Rules-Requires-Root: no
17
18 Package: libregexp-grammars-perl
19 Architecture: all
20 Depends: ${misc:Depends},
21 ${perl:Depends}
22 Multi-Arch: foreign
23 Description: Perl module to add grammatical parsing features to Perl 5.10 regexes
24 Regexp::Grammars adds a small number of new regex constructs that can be used
25 within Perl 5.10 patterns to implement complete recursive-descent parsing.
26 .
27 Perl 5.10 already supports recursive=descent matching, via the new
28 (?<name>...) and (?&name) constructs. This technique makes it possible
29 to use regexes to recognize complex, hierarchical--and even recursive--
30 textual structures. The problem is that Perl 5.10 doesn't provide any
31 support for extracting that hierarchical data into nested data
32 structures. In other words, using Perl 5.10 you can match complex data,
33 but not parse it into an internally useful form.
34 .
35 An additional problem when using Perl 5.10 regexes to match complex
36 data formats is that you have to make sure you remember to insert whitespace-
37 matching constructs (such as \s*) at every possible position where the
38 data might contain ignorable whitespace. This reduces the readability
39 of such patterns, and increases the chance of errors (typically caused
40 by overlooking a location where whitespace might appear).
41 .
42 The Regexp::Grammars module solves both those problems.