▲ | maxbond 4 days ago | ||||||||||||||||||||||
> [It] screams "I've never written code outside of an academic context". SQLite, perhaps the most widely deployed software system, takes this approach. > The Lemon LALR(1) Parser Generator > The SQL language parser for SQLite is generated using a code-generator program called "Lemon". > ... > Lemon was originally written by D. Richard Hipp (also the creator of SQLite) while he was in graduate school at Duke University between 1987 and 1992. Here are the grammars, if you're curious. | |||||||||||||||||||||||
▲ | mpyne 4 days ago | parent | next [-] | ||||||||||||||||||||||
SQLite is kind of cheating here, you won't catching me writing my own source control management system either. But I do think the wider point is still true, that there can be real benefit to implementing 2 proper layered abstractions rather than implementing 1 broader abstraction where the complexity can span across more of the problem domain. | |||||||||||||||||||||||
▲ | kerkeslager 3 days ago | parent | prev [-] | ||||||||||||||||||||||
Yeah, let me know when you're writing the next SQLite. For your average parser, you're not writing the SQLite parser, you don't have the SQLite parser's problems, and you don't need SQLite's solutions. | |||||||||||||||||||||||
|