Re:Let's write a compiler, part 3: A parser
by p4bl0 on Monday August 16, 2021 @01:22PM
(#28200546)
I understand that, but I still find it easier to write/maintain/extend a grammar than a parser for that grammar.
[ Parent
| on HN ]
Re:Let's write a compiler, part 3: A parser
by brundolf on Monday August 16, 2021 @02:30PM
(#28201259)
If you've got the right utility functions, a handwritten parser visually maps very directly to its grammar. It won't be as concise of course, but cognitively you can work with it almost as if it were just a grammar.