5 ms·
Fascinating! Creating tools for developers is such a PITA. Interesting observation: Parsing is considered a solved problem. Unfortunately, this view is naïve,
by JabavuAdams 17y ago
Fascinating! Creating tools for developers is such a PITA.
Interesting observation:
Parsing is considered a solved problem. Unfortunately, this view is naïve, rooted in the widely believed myth that programming languages exist.
The C language does not exist; neither does Java, C++, and C#. While a language may exist as an abstract idea, and even have a pile of paper (a standard) purporting to define it, a standard is not a compiler. What language do people write code in? The character strings accepted by their compiler. Further, they equate compilation with certification. A file their compiler does not reject has been certified as "C code" no matter how blatantly illegal its contents may be to a language scholar. Fed this illegal not-C code, a tool's C front-end will reject it. This problem is the tool's problem.
- stonemetal 17y agoFrom what I understand parsing is a solved problem. Parsing exactly like 40+ different C compilers for which you don't have source is a different beast all together.
- tetha 17y agoI'd rather call it: Parsing a given language is solved. Unterstanding the not-C (love that term) language those 40+ C-Compilers accept is hard.