TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Writing a BNF Grammar

51 pointsby mbellottiover 4 years ago

6 comments

lordgrenvilleover 4 years ago
Off topic: I've noticed HN has started suffixing the sitestr in submissions from GitHub, Twitter, etc. with the username (first subdirectory after the TLD). Probably worth doing it for dev.to as well (not that it shows up here very often).
tester34over 4 years ago
"There are only two types of people who write the code for parsers from scratch: absolutely beginners and absolute experts."
评论 #25276984 未加载
评论 #25285552 未加载
hardmath123over 4 years ago
Here’s a plug for the “nearley playground,” which is a great way to interactively build&#x2F;debug BNF grammars.<p><a href="https:&#x2F;&#x2F;omrelli.ug&#x2F;nearley-playground&#x2F;" rel="nofollow">https:&#x2F;&#x2F;omrelli.ug&#x2F;nearley-playground&#x2F;</a>
ethanwillisover 4 years ago
There was a book I checked out of the library in college that I haven&#x27;t been able to find ever again. All I remember is that it was a series by various author, &quot;IBM System series&quot; and there was one specifically on compilers that goes through building symbol tables, BNF grammar, different parsing methods, etc.<p>Has anyone else here read&#x2F;seen this book and can you remember the exact titles?
analognoiseover 4 years ago
What about context sensitive languages like VHDL?
评论 #25276822 未加载
评论 #25276960 未加载
qubexover 4 years ago
Tangentially related: I must enjoyed Polygen (<a href="https:&#x2F;&#x2F;polygen.org" rel="nofollow">https:&#x2F;&#x2F;polygen.org</a>) that generates text using a BNF template and I have always wanted to construct a template that generated viable templates (BNF of BNF?) but haven’t ever gotten around to it.