蒹葭苍苍,白露为霜。
所谓伊人,在水一方。

Parsing with Perl 6 Regexes and Grammars - pdf - 电子书免费下载

内容提要:

Write good regexes and parsers with the Perl 6 programming language. You’ll see how regexes are used for searching, parsing, and validation: in particular the grammar extension makes them uniquely suitable for parsing, the main focus of this book.  Written by Perl 6 expert Moritz Lenz, a core contributor of Rakudo, Parsing with Perl 6 Regexes and Grammars starts from the very basics of regular expressions, and then explores how they integrate with regular Perl 6 code. Then follows a deeper exploration of how regexes work under the hood and a discussion of common techniques for constructing regexes and exploring the data under scrutiny. Later material goes beyond relatively simple formats to reusable named regexes and grammars, which permit code reuse in grammars, and shows how to write parsers for more involved data formats. Error reporting and case studies wrap up the topic.

While regexes allow you to search for patterns in text and validate input, Perl 6 regexes advance that concept: you’ll see how they are easier to read, yet much more powerful, than the traditional “Perl-compatible regular expression”. With improved reusability and backtracking control, you will be able to write complete parsers with the help of this book.

What You’ll Learn

  • Discover the building blocks of Perl 6 regexes
  • Handle regex mechanics and master useful regex techniques
  • Extract data and work with patterns among these use cases
  • Reuse named regexes and other grammars as components or templates
  • Write full parsers, including advanced error reporting and data extraction
  • Learn how to parse nested scopes and indention-based formats
Who This Book Is For

Those with at least some prior experience with Perl programming, but who may be new to Perl 6 as well as searching and parsing.

ISBN:English

年份:2018

总页数:2018

语言:1484232275

文件大小:2.7 MB

文件格式:PDF

下载:关注本站公众号(右侧二维码),在 个性化-联系客服 中输入本文链接可获取文件下载链接。

赞(0) 打赏
未经允许不得转载:酷居科技 » Parsing with Perl 6 Regexes and Grammars - pdf - 电子书免费下载

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

锦瑟无端五十弦,一弦一柱思华年

酷居科技联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏