Parsing with Perl 6 Regexes and Grammars

A Recursive Descent into Parsing

Nonfiction, Computers, Programming, Programming Languages, General Computing
Cover of the book Parsing with Perl 6 Regexes and Grammars by Moritz Lenz, Apress
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart
Author: Moritz Lenz ISBN: 9781484232286
Publisher: Apress Publication: December 4, 2017
Imprint: Apress Language: English
Author: Moritz Lenz
ISBN: 9781484232286
Publisher: Apress
Publication: December 4, 2017
Imprint: Apress
Language: English

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.

View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart

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

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.

More books from Apress

Cover of the book macOS Programming for Absolute Beginners by Moritz Lenz
Cover of the book Learn Swift on the Mac by Moritz Lenz
Cover of the book Build Android-Based Smart Applications by Moritz Lenz
Cover of the book Beginning Elastic Stack by Moritz Lenz
Cover of the book Introducing Materialize by Moritz Lenz
Cover of the book Cube Farm by Moritz Lenz
Cover of the book The 12 Magic Slides by Moritz Lenz
Cover of the book Reinforcement Learning by Moritz Lenz
Cover of the book Irresistible Apps by Moritz Lenz
Cover of the book .NET Development Using the Compiler API by Moritz Lenz
Cover of the book PHP CLI by Moritz Lenz
Cover of the book Linux Sound Programming by Moritz Lenz
Cover of the book The Manager's Guide to Web Application Security by Moritz Lenz
Cover of the book Common Lisp Recipes by Moritz Lenz
Cover of the book Programming PIC Microcontrollers with XC8 by Moritz Lenz
We use our own "cookies" and third party cookies to improve services and to see statistical information. By using this website, you agree to our Privacy Policy