Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
p4bl0
on Aug 16, 2021
|
parent
|
context
|
favorite
| on:
Let's write a compiler, part 3: A parser
I understand that, but I still find it easier to write/maintain/extend a grammar than a parser for that grammar.
brundolf
on Aug 16, 2021
[–]
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.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: