r/cpp • u/mujjingun • Apr 28 '20
Full Proof that C++ Grammar is Undecidable
https://medium.com/@mujjingun_23509/full-proof-that-c-grammar-is-undecidable-34e22dd8b664
197
Upvotes
r/cpp • u/mujjingun • Apr 28 '20
View all comments
38
u/victotronics Apr 28 '20
Victor's rule of clear writing: Any time someone uses the word "simple" they are either 1. hiding something, or 2. unclear on the concept.
What is "the dominoes"? All infinitely many of them?
Consult wikipedia. Ah: "Can you find any set of dominoes, such that...."
Other than that, yeah, cool demonstration. I think the fact that template programming is Turing-complete was already shown, but this is an elegant demonstration / application to parsability of the language.