News for hackers. Stuff that matters.
Re:HTTP: , FTP:, and Dict:? by sixdimensional on Monday September 23, 2024 @12:32AM (#41622407)
May I humbly submit “parsing expression grammars”[1] for your consideration?

Fairly simple and somewhat fun.. Python has PEG parsing built in, but also the pyparsing or parsimonious modules too.

I have built EDI X12 parsers and toy languages with this.

[1] https://en.wikipedia.org/wiki/Parsing_expression_grammar

Re:HTTP: , FTP:, and Dict:? by sixdimensional on Monday September 23, 2024 @12:38AM (#41622425)
Also lark in Python too