this post was submitted on 18 Dec 2024
229 points (97.5% liked)

Programmer Humor

19809 readers
1115 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 17 hours ago* (last edited 17 hours ago)

Like any other set of parsing combinators just limited to regular grammars. Most if not even all such libraries already contain everything to express the regular subset as it's actually quite useful.

It's certainly more readable once you get past trivial stuff.

Random example: Here's nom's Kleene star, many0.