Parsing with Perl 6 Regexes and Grammars (häftad)
Fler böcker inom
Format
Häftad (Paperback / softback)
Språk
Engelska
Antal sidor
201
Utgivningsdatum
2017-12-11
Upplaga
1st ed.
Förlag
APress
Illustratör/Fotograf
Bibliographie
Illustrationer
4 Illustrations, color; 8 Illustrations, black and white; XIV, 201 p. 12 illus., 4 illus. in color.
Dimensioner
234 x 156 x 12 mm
Vikt
313 g
Antal komponenter
1
Komponenter
1 Paperback / softback
ISBN
9781484232279

Parsing with Perl 6 Regexes and Grammars

A Recursive Descent into Parsing

Häftad,  Engelska, 2017-12-11
512
  • Skickas från oss inom 7-10 vardagar.
  • Fri frakt över 249 kr för privatkunder i Sverige.
Finns även som
Visa alla 1 format & utgåvor
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.
Visa hela texten

Passar bra ihop

  1. Parsing with Perl 6 Regexes and Grammars
  2. +
  3. Co-Intelligence

De som köpt den här boken har ofta också köpt Co-Intelligence av Ethan Mollick (häftad).

Köp båda 2 för 740 kr

Kundrecensioner

Har du läst boken? Sätt ditt betyg »

Fler böcker av Moritz Lenz

Övrig information

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.

Innehållsförteckning

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