Parsing with Perl 6 Regexes and Grammars - Moritz Lenz

Parsing with Perl 6 Regexes and Grammars (eBook)

A Recursive Descent into Parsing

(Autor)

eBook Download: PDF
2017 | 1st ed.
XIV, 201 Seiten
Apress (Verlag)
978-1-4842-3228-6 (ISBN)
Systemvoraussetzungen
36,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
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.



Moritz Lenz is a software engineer and architect.  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.  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.

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 "e;Perl-compatible regular expression"e;. With improved reusability and backtracking control, you will be able to write complete parsers with the help of this book.What You'll LearnDiscover 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 formatsWho This Book Is ForThose with at least some prior experience with Perl programming, but who may be new to Perl 6 as well as searching and parsing.

Moritz Lenz is a software engineer and architect.  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.  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.

1. What are Regexes and Grammars?2. Getting Started with Perl 63. Building Blocks of Regexes4. Regexes and Perl 6 Code5. Extracting Data from Regex Matches6. Regex Mechanics7. Regex Techniques8. Reusing and Composing Regexes9. Parsing With Grammars10. Extracting Data From Matches11. Generating Good Parse Error Messages12. Unicode and Natural Language13. Case Studies

Erscheint lt. Verlag 4.12.2017
Zusatzinfo XIV, 201 p. 12 illus., 4 illus. in color.
Verlagsort Berkeley
Sprache englisch
Themenwelt Informatik Programmiersprachen / -werkzeuge Perl
Informatik Theorie / Studium Compilerbau
Schlagworte Applications • Code • Open Source • parsing • Perl 6 • programming • regex • Regular Expressions • Searching • Software • source
ISBN-10 1-4842-3228-3 / 1484232283
ISBN-13 978-1-4842-3228-6 / 9781484232286
Informationen gemäß Produktsicherheitsverordnung (GPSR)
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 2,8 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.