Perl’s Pegex Module: a great way to parse files by creating grammars

Posted on August 8, 2016. Filed under: Uncategorized | Tags: , , , , , |

Perl’s Pegex Module: a great way to parse files by creating grammars

We recently came across Pegex and found it to be an interesting module for parsing text data. Instead of using regular expressions directly, the user can write a grammar for the data to be parsed. The data can be automatically converted to a native Perl object or, if the user desires, it’s possible to use actions to handle the grammar while parsing using a Pegex::Receiver class.

Liked it here?
Why not try sites on the blogroll...