Buy $34.99
| Kindle Price: | $34.99 |
| Sold by: | Amazon.com Services LLC |
Rent $13.64
Today through selected date:
Rental price is determined by end date.
- Highlight, take notes, and search in the book
Your Memberships & Subscriptions
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Parsing with Perl 6 Regexes and Grammars: A Recursive Descent into Parsing 1st ed. Edition, Kindle Edition
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.
From the Back Cover
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 formats
About the Author
- ISBN-13978-1484232279
- Edition1st ed.
- PublisherApress
- Publication dateDecember 4, 2017
- LanguageEnglish
- File size788 KB
Customers who bought this item also bought
Product details
- ASIN : B0785L6WR6
- Publisher : Apress; 1st ed. edition (December 4, 2017)
- Publication date : December 4, 2017
- Language : English
- File size : 788 KB
- Text-to-Speech : Enabled
- Screen Reader : Supported
- Enhanced typesetting : Enabled
- X-Ray : Not Enabled
- Word Wise : Not Enabled
- Sticky notes : On Kindle Scribe
- Print length : 237 pages
- Best Sellers Rank: #2,441,557 in Kindle Store (See Top 100 in Kindle Store)
- #180 in Perl Programming
- #562 in Object Oriented Design
- #695 in Open Source Programming
- Customer Reviews:
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
When I started to learn Perl 6 grammars about four years ago, it was sometimes quite difficult for me, because the documentation was relatively sparse and scattered in various places. I really wished that I had the opportunity to have a good book on Perl 6 grammars, but there was none at the time. Now, this book exists, this is "Parsing with Perl 6 Regexes and Grammars," by Moritz Lenz, and this is not simply a good book on grammars, this is a truly excellent book. This is really the exact book that I would have wished to have when I started, and even long after I started.
I have read thoroughly a beta-version of that book in September of this year (being one of the technical reviewers), and I can only say that the author really made an absolutely superb job. The book is very clear, and yet covers thoroughly everything there is to know about Perl 6 grammars, including some of the somewhat arcane details that could become a showstopper to persons not used to the grammar paradigm. With this book, you're really ready to go.
I have received the final version (in electronic format) only two days ago and haven't gone through it in detail yet, but I noticed that Moritz Lenz's book now has 90 more pages. I did not have time yet to read this new, final version in detail yet, but from what I saw going through it, I am sure that it is an even better book than the one I read about three months ago.
Thank you very much, Moritz, in my name and in the name of the whole community, for making this excellent book available. Again, this is exactly the book I would have wished to have when I started to work on Perl 6 grammars, and I can only very warmly recommend everyone interested with the subject to get hold of it.
And, by the way, although I have both the beta electronic version of three months ago and the final electronic version that was just issued, I ordered a few weeks ago the printed version, as this is really a book I want to have on my desk next to my computer whenever I am using grammars. I believe you should do the same.
Before reading his book, I had read the whole Raku docs through *once* before much exposure to the language. Then, I spent a few months with it, writing Raku daily for various scripting tasks. I was starting to get the hang of grammars when I picked up this book.
What it did for me was to show me a few dozen more techniques than I knew before -- I now use many of these techniques daily. Moritz's book went beyond the docs to really show specifically how to put some of the less obvious grammar features into practice on real tasks.
Plus, he was available to answer a few specific questions I had on IRC/discord -- it made my day!
Thank you Moritz! Looking forward to reading more from you!
If you have an interest in the subject, get this book. It is an accessible how-to that scales to a broad range of ability.
If you can write code in any modern general purpose language, know what 'parsing' and 'compiling' mean, and used some textual pattern matching or regular expressions, then this book will get you going. If you are missing one of the above abilities, you just can't skim over the start of the book.
If you know you are capable of writing a compiler with all the bells and whistles
then this will show you a state of the art tool designed to get it done quickly. It demonstrates how to handle errors, reference the offending input, and other finishing touches.
The copious examples of real-world situations in this book, along with the solid explanations, make me wonder how I managed to do parsing beforehand (and make me realize why I tried to avoid it). Perl 5 was once called the sound of people not banging their heads against a wall -- this book evokes a similar sentiment, though this time the wall is lex and yacc, or trying to push regexes beyond their limits. The simple yet thorough explanations of the techniques in this book have already become an invaluable part of my programming toolkit and my problem solving. I also found that the format is clear and approachable, with new insights and techniques for all levels of programmers.
Perl 6 has done much improvement on PCRE, this book shows these amazing features.
Grammar description and sample case are graceful.
Top reviews from other countries
une approche à la fois simple et compréhensible malgré la difficulté
du sujet traité. Je conseille (livre en anglais).
Definitely recommended for anyone looking to learn Perl6.
