3 ms·
Perl has powerful regular expressions, but it only goes so far. Doing multiline/nested structured parsing is too painful. Perl6/Raku has built in grammers that
by reddit_clone 5mo ago
Perl has powerful regular expressions, but it only goes so far. Doing multiline/nested structured parsing is too painful.
Perl6/Raku has built in grammers that can do that idiomatically.
If you have a couple minutes, give this a glance. It will give you an idea.
https://andrewshitov.com/2018/10/31/a-simple-parser-in-perl-6-grammars/ https://andrewshitov.com/2018/10/31/a-simple-parser-in-perl-...
I am no expert in haskell either. But parsec is similar in concept.