Hacker News new | ask | show | jobs
by ternaryoperator 3555 days ago
The problem with this is that TeX cannot be described using a context-free grammar (CFG). Knuth has discussed this in the past. So, building a compiler for TeX is almost impossible.
1 comments

> The problem with this is that TeX cannot be described using a context-free grammar (CFG). Knuth has discussed this in the past. So, building a compiler for TeX is almost impossible.

Neither can C++[0], yet there still are C++ compilers out there. It does raise the bar significantly, though.

[0] http://stackoverflow.com/a/14589567