Ask HN: Book recommendations for grammar as it relates to computing?
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'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'd like a wide survey of the field, but as it relates to making computers do things or encoding information. Oh, and while I'm being wishful, one written in layman's terms.
Is there a "Grammar as it Relates to Computing for Dummies"?
9 comments
[ 4.4 ms ] story [ 30.2 ms ] threadIn yet other words: I don't know what I don't know about grammar.
> The first edition in turn constituted a major revision of a previous textbook also written by Hopcroft and Ullman, entitled Formal Languages and Their Relation to Automata.
https://en.wikipedia.org/wiki/Introduction_to_Automata_Theor...
Used copy ordered.
Searching for that title also lead me to _Introduction to Formal Languages_ by Gyorgy E. Revesz, which also looks like a good fit and which Dover is currently printing as one of their reasonably-priced paperbacks!
https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form
> Among his [Backus's] library at the time were the works of the modern philosopher and theorist Noam Chomsky, who studied the evolution of the human intellect and of written and spoken language in parallel. Chomsky was developing a symbolic syntax with which to frame his concepts of languages within languages, in the study of how sociology affects grammar. Backus borrowed some of Chomsky's concepts, including the idea that a symbology could represent a computer language...even one that didn't yet exist.
So again, it all seems to point back to Noam Chomsky. I do have a copy of Chomsky's _Aspects of the Theory of Syntax_ coming to my home soon. Should be interesting.
Not exactly cheap, but pretty good.
There’s also https://www.amazon.com/Automata-Formal-Languages-Turing-Mach... 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.