Parsing with Perl 6 Regexes and Grammars
Apress (Verlag)
978-1-4842-3227-9 (ISBN)
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 aswell 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 6.- 3. Building Blocks of Regexes.- 4. Regexes and Perl 6 Code.- 5. Extracting Data from Regex Matches.- 6. Regex Mechanics.- 7. Regex Techniques.- 8. Reusing and Composing Regexes.- 9. Parsing With Grammars.- 10. Extracting Data From Matches.- 11. Generating Good Parse Error Messages.- 12. Unicode and Natural Language.- 13. Case Studies.
Erscheinungsdatum | 22.12.2017 |
---|---|
Zusatzinfo | 4 Illustrations, color; 8 Illustrations, black and white; XIV, 201 p. 12 illus., 4 illus. in color. |
Verlagsort | Berkley |
Sprache | englisch |
Maße | 155 x 235 mm |
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-3227-5 / 1484232275 |
ISBN-13 | 978-1-4842-3227-9 / 9781484232279 |
Zustand | Neuware |
Informationen gemäß Produktsicherheitsverordnung (GPSR) | |
Haben Sie eine Frage zum Produkt? |
aus dem Bereich