Details

Parsing with Perl 6 Regexes and Grammars


Parsing with Perl 6 Regexes and Grammars

A Recursive Descent into Parsing

von: Moritz Lenz

36,99 €

Verlag: Apress
Format: PDF
Veröffentl.: 04.12.2017
ISBN/EAN: 9781484232286
Sprache: englisch

Dieses eBook enthält ein Wasserzeichen.

Beschreibungen

<div>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. &nbsp;Written by Perl 6 expert Moritz Lenz, a core contributor of Rakudo, <i>Parsing with Perl 6 Regexes and Grammars</i> 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.</div><div><br></div><div>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.</div><div><br></div><div><b>What You'll Learn</b></div><div><ul><li>Discover the building blocks of Perl 6 regexes&nbsp;<br></li><li>Handle regex mechanics and master useful regex techniques&nbsp;<br></li><li>Extract data and work with patterns among these use cases&nbsp;<br></li><li>Reuse named regexes and other grammars as components or templates&nbsp;<br></li><li>Write full parsers, including advanced error reporting and data extraction&nbsp;<br></li><li>Learn how to parse nested scopes and indention-based formats<br></li></ul></div><div><br></div><div><b>Who This Book Is For</b></div><div><br></div><div>Those with at least some prior experience with Perl programming, but who may be new to Perl 6 as well as searching and parsing.</div><div><br></div>
<div>1. What are Regexes and Grammars?</div><div>2. Getting Started with Perl 6</div><div>3. Building Blocks of Regexes</div><div>4. Regexes and Perl 6 Code</div><div>5. Extracting Data from Regex Matches</div><div>6. Regex Mechanics</div><div>7. Regex Techniques</div>8. Reusing and Composing Regexes<div>9. Parsing With Grammars</div><div>10. Extracting Data From Matches</div><div>11. Generating Good Parse Error Messages</div><div>12. Unicode and Natural Language</div><div>13. Case Studies</div><div><br></div>
<div>Moritz Lenz is a software engineer and architect. &nbsp;In the Perl community, he is well known for his contributions to the Perl 6 programming language, the Rakudo Perl 6 compiler, related test suite, infrastructure and tools. &nbsp;At his employer, noris network AG, he introduced continuous delivery for many in-house developed applications, and now wants to share his experience with the wider world.</div>
<div>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. &nbsp;Written by Perl 6 expert Moritz Lenz, a core contributor of Rakudo,&nbsp;<i>Parsing with Perl 6 Regexes and Grammars</i>&nbsp;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.</div><div><br></div><div>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.</div><div><br></div><div>You will:</div><div><ul><li>Discover the building blocks of Perl 6 regexes&nbsp;<br></li><li>Handle regex mechanics and master useful regex techniques&nbsp;<br></li><li>Extract data and work with patterns among these use cases&nbsp;<br></li><li>Reuse named regexes and other grammars as components or templates&nbsp;<br></li><li>Write full parsers, including advanced error reporting and data extraction&nbsp;<br></li><li>Learn how to parse nested scopes and indention-based formats</li></ul></div>
<p>Explores the three primary use cases for Perl 6 regexes: searches, validations, and parsing</p><p>Shows you how to master regex techniques</p><p>Teaches how to reuse named regexes as templates</p>
Explores the three primary use cases for Perl 6 regexes: searches, validations, and parsing<div>Shows you how to master regex techniques<br></div><div>Teaches how to reuse named regexes as templates<br></div>

Diese Produkte könnten Sie auch interessieren:

Software Process Modeling
Software Process Modeling
von: Silvia T. Acuna, Natalia Juristo
PDF ebook
96,29 €
A Software Process Model Handbook for Incorporating People's Capabilities
A Software Process Model Handbook for Incorporating People's Capabilities
von: Silvia T. Acuna, Natalia Juristo, Ana Maria Moreno, Alicia Mon
PDF ebook
149,79 €
XML for Bioinformatics
XML for Bioinformatics
von: Ethan Cerami
PDF ebook
53,49 €