Parsing C++ is literally undecidable (2013)
blog.reverberate.org
Parsing C++ is literally undecidable (2013)
1–10 of 146 posts
Re: Parsing C++ is literally undecidable (2013)
#2They're slowly becoming available via clang now, which is nice.
Re: Parsing C++ is literally undecidable (2013)
#3This is why the tools situation in c++ had been so far behind other languages like Java. You have to build a full frontend to even parse the language. They're slowly becoming available via clang now, which is nice.
Re: Parsing C++ is literally undecidable (2013)
#4This is why the tools situation in c++ had been so far behind other languages like Java. You have to build a full frontend to even parse the language. They're slowly becoming available via clang now, which is nice.
I wonder if it's possible to craft a non-gigantic C++ file which causes a clang frontend to crash.
Re: Parsing C++ is literally undecidable (2013)
#5This is why the tools situation in c++ had been so far behind other languages like Java. You have to build a full frontend to even parse the language. They're slowly becoming available via clang now, which is nice.
I wonder if it's possible to craft a non-gigantic C++ file which causes a clang frontend to crash.
Re: Parsing C++ is literally undecidable (2013)
#6Re: Parsing C++ is literally undecidable (2013)
#7This is why the tools situation in c++ had been so far behind other languages like Java. You have to build a full frontend to even parse the language. They're slowly becoming available via clang now, which is nice.
Re: Parsing C++ is literally undecidable (2013)
#8Why shouldn't C++ templates be Turing-complete? Template metaprogramming is a great strength of C++. The language is gross but the result is quite powerful.
That doesn’t mean it doesn’t matter though. The decidability of C++ grammar certainly matters to folks that are parsing C++ code.
Re: Parsing C++ is literally undecidable (2013)
#9Why shouldn't C++ templates be Turing-complete? Template metaprogramming is a great strength of C++. The language is gross but the result is quite powerful.