miniblog.
← Back to all posts
Apr 15, 2016 at 22:52
When I asked compiler engineers their views on parser generators, they said 'great for prototypes'. This seems to reflect common practice.
Wilfred Hughes
Related Posts
Apr 13, 2017 at 07:41
Elegant library for building CLI interfaces:
https://www.npmjs.com/package/commander
Most PLs have >2 CLI parsers, seems no best practice has emerged yet.
Just a moment...
www.npmjs.com/package/commander
Wilfred Hughes
Shared words: parser, seems, practice Score: 54.3
Dec 11, 2018 at 00:26
Usually, npmtrends is a great way of choosing a library that's widely used and probably more reliable and better documented. When choosing a JS parser, the options are remarkably close!
https://www.npmtrends.com/acorn-vs-esprima
acorn vs esprima | npm trends
Comparing trends for acorn 8.15.0 which has 123,183,083 weekly downloads and 11,244 GitHub stars vs. esprima 4.0.1 which has 65,191,351 weekly downloads and 7,120 GitHub stars.
Wilfred Hughes
Shared words: parser, When, great Score: 46.2
Jan 7, 2023 at 07:33
A survey of parser generator usage in major language implementationss:
https://notes.eatonphil.com/parser-generators-vs-handwritten-parsers-survey-2021.html
Most have a handwritten parser. GCC and Go moved from generated to handwritten. SQLite and Python <3.10 built their own parser generators!
Parser generators vs. handwritten parsers: surveying major language implementations in 2021 | notes.eatonphil.com
Parser generators vs. handwritten parsers: surveying major language implementations in 2021
Wilfred Hughes
Shared words: parser, generators Score: 31.7