I’m working on a scripting language and would like to write a compiler / interpreter for my language.
I’ve desited to do the compiler in standart ML
My question now is, is there a “pattern” for doing this sorta design process?
I’ve written a java-compiler from scratch as a part of a computerscience course, but that was sorta cheating, since the language was given, meaning that there was reference implementations and syntax, grammars and other specs given.
If starting from scratch, only having a problem domain how does one get started?
I’m looking for a book or a tutorial on the subject.
The classic books on modern compiler construction in functional languages are: