#parser-generators
Of course, classic parser generators and compilers can also do that though their transformative functions are much more transparent and “deterministic” (it’s not necessarily formally deterministic as you might use stochastic heuristics but close enough).
November 16, 2026 at 12:27 PM
I suspect reliability is a big signal for us. Parser generators reliably output parsers than recognise the grammar specified language (and by design). LLMs reliably (compare to most purely random processes) produce syntactically correct and semantically coherent sentences (weather code or NL).
November 16, 2026 at 12:27 PM
Yes. I have read your great rants on the topic. I think compiler folks have done a better job in this space. Parser generators, optimization passes, IRs, pluggable backends… the complexity is still visible, but the building blocks fit together well.
November 11, 2026 at 5:42 AM
There should be state machine generator libraries for most languages (parser generators, too). The ideal is formal correctness guarantees, but those are sadly still rare. Haven't been tracking what's current, though.
October 26, 2026 at 1:26 PM
For problems too gnarly for basic regex but too small for parser generators, several commenters pointed to Python's undocumented re.Scanner as an overlooked sweet spot that tokenizes without bringing in heavy grammar machinery. #python 3/4
October 19, 2026 at 4:00 AM
Same as with parser-generators. (-:
October 1, 2026 at 5:20 PM
dsls.dev/article/Best...

This is author is at least marginally aware most parser generators require loading external libraries right?

The entire point of my design is so I dont need external libraries.
Best practices for designing and implementing DSLs
dsls.dev
September 27, 2026 at 6:47 PM
That makes sense!

So my concern has been AECA/ITAR...like the PGP guy got caught up with that

With my work im unclear on if the gov would make an argument that I need to register, which I think req's getting approval when traveling abroad

Dunno if ITAR would cover parser generators, tho plausible
September 17, 2026 at 5:31 AM
I am pretty sure it does not cover parser generators, or general programming language development, or software verification

itar and the wassenaar arrangement aren't the same thing, but in the us, wassenaar is implemented through itar, if that makes sense
September 17, 2026 at 5:35 AM
C# people came up with source generation and json / regex parser to concrete implementation generators for AOT (i think?, also it is faster in runtime). They need to parse C# source, emit C# code and link things that way. Zig provides the same without all the dance around source code

I just love it
November 26, 2024 at 12:12 PM
FUCK parser generators
February 1, 2025 at 1:45 AM
@sue Good codegen should be predicable and reproducible. Think of parser generators like Bison. You put the Bison file in the code repository, and it can be debugged or improved by the team like any other code. Moreover, Bison has a manual that tells you exactly what to expect for any input […]
Original post on piaille.fr
piaille.fr
January 18, 2026 at 12:57 PM
To be clear, I'm not saying that people should always use parser generators for JSON. Far from it. But humans are bad at managing complexity perfectly, and subsets of simple languages can be very complex. Exactly where you draw the line is an engineering decision.
February 22, 2024 at 3:08 PM
The process-as-you-parse behavior of parser generators is much cleaner than the layering abominations that handle TCP packets on pretty much every OS on earth.
February 22, 2024 at 2:50 PM
The lack of ordering guarantees in JSON mean you won't always get that speedup, but plenty of parser generators will give you code that gets that benefit opportunistically.
February 22, 2024 at 2:48 PM
If this sounds messy, it is. That's why we have parser generators for many languages.
February 22, 2024 at 1:03 PM
Are there any parser-generators are capable of emitting non-recursive code to parse recursive languages?
February 22, 2024 at 1:06 PM
i'm just trying to figure out if there are any parser libraries that use generators as suspendable parsers (so e.g. you could have a parser that needs to be called three times to succeed)
June 14, 2025 at 8:28 AM
(i blackpilled myself on parser generators using tree-sitter so now i'm forevermore committed to just writing them by hand with parser combinator libraries)
January 24, 2025 at 4:20 PM
honestly, now that i’m halfway through a compiler implementation, i absolutely should have written a recursive descent parser myself. parser generators are easy to start with but horrible to work around
December 5, 2024 at 5:26 PM
on this note, i like PEGs but something i find very strange is that if you look up PEG libraries they're mostly all "parser generators" that are like very beholden to the syntax of the original PEG presentation and are statically constructed
August 21, 2026 at 3:49 PM
Using antlr to turn the grammar into a lexer/parser/listener, and extending the listener in Python create my model, using a stack. Before I had only used visitors which initially was more comfortable; but doing your own stack is its own reward. Now has overloaded generators for different outputs!
November 29, 2024 at 9:22 PM
Oh yeah I whined yesterday about not getting good error information out of Rust parser generators but it turns out Chumsky does have a nice way to wrap AST nodes with the location of the tokens that generated it, so you can report errors trivially that way […]
Original post on tilde.zone
tilde.zone
February 20, 2026 at 5:12 PM
Really irritating that while Rust has some parser generators/combinators that really pride themselves on good error reporting (which parser generators are traditionally notoriously poor at), precisely none that I've looked at have deigned to actually expose error reporting to the user, it's for […]
Original post on tilde.zone
tilde.zone
February 20, 2026 at 4:05 AM