全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: libregexp-grammars-perl  ]

套件:libregexp-grammars-perl(1.049-1)

libregexp-grammars-perl 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 libregexp-grammars-perl

維護小組:

外部的資源:

相似套件:

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.

標籤: 軟體開發: Perl 開發, 函式庫, 實做語言: Perl, 角色: 共用函式庫

其他與 libregexp-grammars-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 libregexp-grammars-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 278。8 kB513。0 kB [檔案列表]