© J.J. Merelo 2019
J. MereloPerl 6 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4956-7_15

15. Grammars

One of the Features That Makes Perl 6 Unique, and One of the Most Powerful Ways of Processing Text
J. J. Merelo1 
(1)
Granada, Spain
 

Opening a file or group of files, extracting information from them from its regular structure, and performing additional operations are quintessential scripting tasks. Regular expressions are present in every modern language and will help you match the structure in a string (considering a document as a very long string sometimes). Perl 6 takes the concept a bit further: grammars collect regular expressions and can be applied to complex constructions such as protocols or even programming languages.

The syntax ...

Get Perl 6 Quick Syntax Reference: A Pocket Guide to the Language, the Core Modules, and the Community 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.