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

Parsing with Perl 6 Regexes and Grammars

A Recursive Descent into Parsing

By: Moritz Lenz

Paperback | 11 December 2017

At a Glance

Paperback


$73.85

or 4 interest-free payments of $18.46 with

 or 

Aims to ship in 7 to 10 business days

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.

More in Programming & Scripting Languages

Python All-in-One For Dummies : 3rd Edition - John C. Shovic

RRP $74.95

$50.35

33%
OFF
The C Programming Language : Prentice Hall Software - Dennis Ritchie

RRP $101.95

$72.25

29%
OFF
Modern PHP : New Features and Good Practices - Josh Lockhart

RRP $57.00

$28.25

50%
OFF
Learning Agile : Understanding Scrum, XP, Lean, and Kanban - Andrew Stellman
SQL Tuning : O'Reilly Ser. - Dan Tow

RRP $75.95

$35.75

53%
OFF
C++ How to Program, Global Edition : 11th Edition - Paul Deitel

RRP $161.17

$129.75

19%
OFF
Definitive ANTLR 4 Reference : 2nd Edition - Terence Parr

RRP $70.35

$33.25

53%
OFF
Head First Swift : Head First - Jon Manning

RRP $152.00

$66.25

56%
OFF
Introducing Go : Build Reliable, Scalable Programs - Caleb Doxsey
Learning OpenCV 3 : Computer Vision in C++ with the OpenCV Library - Adrian Kaehler