5 ms·
Ask HN: Best resources for learning about commercial “IDE grade” parsers
The fact that neither the traditional CS curriculum nor the research literature covers "real world, production-grade" parsers - especially ones suitable for use in commercial IDEs - has come up repeatedly on HN. That begs the question: are there resources that do? This is not a question about how lexing and parsing works, the merits of parser generators and specific grammars, the implementation of canonical parsers, or codebase examples, e.g., JetBrains community edition. It is a question about design patterns for practical concerns like evolution and maintainability, generating great error messages, operating incrementally, and remaining snappy when used on real (not pathological) PL sources. Thanks!
- edsonmedina 6y agoHave you looked into any open-source language servers?
- Pozzuh 6y agoI wonder what your expectations are. Why would commercial IDEs not use the same methods of lexing and parsing as research products?
- the_only_law 6y agoThere was a thread the other week debating this: https://news.ycombinator.com/item?id=25389583 https://news.ycombinator.com/item?id=25389583
- ThePhysicist 6y agoI think "Parsing Techniques" by Grune & Jacobs is the bible when it comes to parsing, it covers all subjects you mentioned and gives a detailed overview of most practical parsing approaches.
- iends 6y agoYikes, $127 on Amazon in the US.
- ThePhysicist 6y agoIf there's no public library that you could lend it from you may check out sites like b-ok(dot)org. I don't endorse this in general but Springer is making it outrageously expensive to get access to academic literature to people that are not affiliated with universities.
- bjourne 6y agoEngineering: A Compiler covers the issues you mention, but it is part of at least some CS curricula so I'm not sure it's what you're looking for.