Summary

Now you have learned to perform simple and the more complex tasks of recognizing, analyzing, and manipulating data by using parse. We first got to know the bitset! datatype and its handy charset equivalent. Then, we learned how to parse with to and thru, extract data (with copy), and change data. We saw how we can attach code to a rule to be executed when it matches. Finally, we explored how to parse blocks and code, and how to get a detailed output of how parse works in a specific case.

This chapter was not exhaustive, some other words exist in parse which we haven't talked about. In fact, the parse dialect deserves a book on its own.

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.