3 ms·
Maybe most people's last contact with compilers was that lex/yacc undergraduate course. That was much harder than it had to be.
by rubinelli 13y ago
Maybe most people's last contact with compilers was that lex/yacc undergraduate course. That was much harder than it had to be.
- klibertp 13y agoMy first contact with compiler writing was through a book, I forgot the title, where the guy explained how to write a compiler for pascal-like language for some specific, non-x86 processor (I forgot which; I only remember that it wasn't anything I'd heard of). The book was very amusing and made me realize how simple the idea of compilers is - I was somewhat proficient with assembly then and after a few illustrative examples it all "clicked". Needless to say, the parser was handwritten and expanded when another construct was added to the language, so it was the simplest and lowest-overhead possible. Anyway, compilers and interpreters ideas are very simple and powerful and beautiful because of that. There is no magic, however magical their workings may seem from the higher level :)
- dmpk2k 13y agoMayhap you refer to Crenshaw's tutorials.