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.

Ask HN: Book recommendations for grammar as it relates to computing?

8 pointsby davegauerabout 3 years ago
Though any book on compilers or computation will make some reference to grammar (defining terms such as regular vs. non-regular), it is often in passing. I&#x27;m interested in a deeper dive. I believe a lot of the terminology we use comes from Chomsky, but his own books seem to be focused on humans and language learning. I&#x27;d like a wide survey of the field, but as it relates to making computers do things or encoding information. Oh, and while I&#x27;m being wishful, one written in layman&#x27;s terms.<p>Is there a &quot;Grammar as it Relates to Computing for Dummies&quot;?

3 comments

layer8about 3 years ago
This might be what you’re looking for: <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Parsing-Techniques-Practical-Monographs-Computer&#x2F;dp&#x2F;1441919015&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Parsing-Techniques-Practical-Monograp...</a><p>Not exactly cheap, but pretty good.<p>There’s also <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Automata-Formal-Languages-Turing-Machines-ebook&#x2F;dp&#x2F;B08K4D7Y7W&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Automata-Formal-Languages-Turing-Mach...</a> which focuses more on the Chomsky hierarchy and automata, and doesn’t go into practical parsers and the related grammar types like the first book.
评论 #30923129 未加载
harrada256about 3 years ago
&quot;Compilers: Principles, Techniques, and Tools&quot; or &quot;The Dragon Book&quot; as it is informally known was always recommended on compsci courses I have taken. It has a section within &quot;Syntax Analysis&quot; which covers context-free grammars.
评论 #30921151 未加载
open-source-uxabout 3 years ago
Does &#x27;Backus–Naur form&#x27; meet your interest? It is a formal way of describing the syntax of a programming language, but I suspect it is not used much for modern programming languages:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Backus%E2%80%93Naur_form" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Backus%E2%80%93Naur_form</a>
评论 #30922102 未加载