Re:The dragon compiler book (2nd edition) is a great book
by Solvency on Thursday June 01, 2023 @01:20AM
(#36147829)
I know nothing about compiler design or compiler parsing. How broadly applicable are the chapters on parsing? Will it make the average programmer instantly more equipped to, say, write a robust JSON parser?
[ Parent
| on HN ]
Re:The dragon compiler book (2nd edition) is a great book
by kaba0 on Thursday June 01, 2023 @01:31AM
(#36147878)
I’m not convinced that it would actually be particularly good as a parsing book either.
But the average programmer should just use a CSV parser lib, why reinvent the wheel? For custom tasks learning about ANTLR is much more productive (a good parser generator)
Re:The dragon compiler book (2nd edition) is a great book
by sanxiyn on Thursday June 01, 2023 @01:23AM
(#36147844)
Yes.
Re:The dragon compiler book (2nd edition) is a great book
by jobhdez on Thursday June 01, 2023 @03:19AM
(#36148388)
I think you would have the knowledge to build a parser generator that then you can use to write a parser for json. But you can also also just learn how to use a parser generator. You’ll have to know a little bit about regular expressions for this