2 ms·
I can't argue with your "hugely out of date" note. It is likely that I am also out of date, not having written compilers since the mid-80s. Do you have an opi
by wglb 14y ago
I can't argue with your "hugely out of date" note. It is likely that I am also out of date, not having written compilers since the mid-80s.
Do you have an opinion about the Holub book? Also I have a collection of Davidson papers about code generation that I haven't looked at since back then.
- Locke1689 14y agoUnless you need to for speed or compat reasons, I don't like writing parsers in C. Remember, a compiler is a translator from text to (often)text. You're going to be dealing with a lot of strings and probably allocations for your AST. You should think about using a language which doesn't make string manipulation and memory management like pulling teeth. In general, I'd say the ML family is best for writing a general-purpose compiler. SML even gives your compiler a formal semantics for free.