Paketname | libregexp-grammars-perl |
Beschreibung | Perl module to add grammatical parsing features to Perl 5.10 regexes |
Archiv/Repository | Offizielles Debian Archiv squeeze (main) |
Version | 1.005-1 |
Sektion | perl |
Priorität | optional |
Installierte Größe | 516 Byte |
Hängt ab von | perl (>= 5.10.0) |
Empfohlene Pakete | |
Paketbetreuer | Debian Perl Group |
Quelle | |
Paketgröße | 259240 Byte |
Prüfsumme MD5 | ec2d110345208ff7891f9c3ff9017426 |
Prüfsumme SHA1 | 9b9ab6dc70c7b65ff8fdbb215981cca1759259fe |
Prüfsumme SHA256 | 18bed07b7e3cb6ed05566735dab7039d9c3dcf680a52de4d472584c300340a97 |
Link zum Herunterladen | libregexp-grammars-perl_1.005-1_all.deb |
Ausführliche Beschreibung | Regexp::Grammars adds a small number of new regex constructs that can be used
within Perl 5.10 patterns to implement complete recursive-descent parsing.
.
Perl 5.10 already supports recursive=descent matching, via the new
(?...) and (?&name) constructs. This technique makes it possible
to use regexes to recognize complex, hierarchical--and even recursive--
textual structures. The problem is that Perl 5.10 doesn't provide any
support for extracting that hierarchical data into nested data
structures. In other words, using Perl 5.10 you can match complex data,
but not parse it into an internally useful form.
.
An additional problem when using Perl 5.10 regexes to match complex
data formats is that you have to make sure you remember to insert whitespace-
matching constructs (such as \s*) at every possible position where the
data might contain ignorable whitespace. This reduces the readability
of such patterns, and increases the chance of errors (typically caused
by overlooking a location where whitespace might appear).
.
The Regexp::Grammars module solves both those problems.
|