Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> perl >> libregexp-grammars-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: libregexp-grammars-perl  ]

软件包: libregexp-grammars-perl (1.052-2)

Perl module to add grammatical parsing features to Perl 5.10 regexes

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 (?<name>...) 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.

其他与 libregexp-grammars-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libb-hooks-parser-perl (>= 0.16)
    module providing an interface to Perl's parser variables
  • dep: perl
    Larry Wall's Practical Extraction and Report Language
  • dep: perl (>= 5.20)
    Larry Wall's Practical Extraction and Report Language
    或者 perl (<< 5.18)
    Larry Wall's Practical Extraction and Report Language

下载 libregexp-grammars-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 248.3 kB859 kB [文件列表]