Benutzerdefiniertes Cover
Benutzerdefiniertes Cover
Normale Ansicht MARC ISBD

Parsing with Perl 6 Regexes and Grammars : A Recursive Descent into Parsing / by Moritz Lenz

Von: Resource type: Ressourcentyp: Buch (Online)Buch (Online)Sprache: Englisch Reihen: SpringerLink BücherVerlag: Berkeley, CA : Apress, 2017Beschreibung: Online-Ressource (XIV, 201 p. 12 illus., 4 illus. in color, online resource)ISBN:
  • 9781484232286
Schlagwörter: Andere physische Formen: 9781484232279 | Erscheint auch als: 978-1-4842-3227-9 Druck-AusgabeLOC-Klassifikation:
  • QA76.7-76.73 QA76.76.C65
  • QA76.7-76.73
  • QA76.76.C65
DOI: DOI: 10.1007/978-1-4842-3228-6Online-Ressourcen: Zusammenfassung: 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. You will: 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 formatsZusammenfassung: 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 StudiesPPN: PPN: 1658640578Package identifier: Produktsigel: ZDB-2-CWD | ZDB-2-SEB | ZDB-2-SXPC
Dieser Titel hat keine Exemplare

Powered by Koha