2 ms·
I wonder what the audience of such a leader is. JavaScript engines would probably profit here, given the waste amount of code we download every day. Maybe even
by choeger 7y ago
I wonder what the audience of such a leader is. JavaScript engines would probably profit here, given the waste amount of code we download every day. Maybe even browsers in general. Maybe shells.
But your average compiler or interpreter? The thing is that new languages change so often, do you really want to always generate a lexer table for every new keyword? Or complicate your build system by not using the industry standard tools? And if you have an old language, do you really want to touch that lexer that some bearded hacker has gobbled together decades ago so it works both on a PDP11 and some long forgotten microcomputer?
- archi42 7y agoMaybe people who will one day work on compilers? I learned a lot writing a compiler for a subset of C over one semester (in C++), and just recently built a "compiler" that is used in-house for a one-shot conversion task. Without the prior knowledge that would have been a pain (the input language is poorly documented), but that way I just wrote the whole tokenizer/parser/emitter-chain in perl5 (pattern matching is awesome, and performance doesn't matter as long as I can parse in the rang of 10k to 50k lines per minute).