For as long as I can remember I've dreamed of writing a compiler. Rather than seeing a shrink about this, I've decided to actually write a compiler. The Parrot Virtual Machine costs a lot less than a psychoanalyst.
I've created a small language that I call Simple Parrot Test Language (SPTL -- pronounced "spittle.") All the good names were already taken. I don't expect this language to be useful in the real world. SPTL's main reason for living is for a personal exercise in compiler construction.
My plan is to initially hand-code a compiler in Perl, then begin again using Parrot's compiler tools. It's probably more work than necessary, but maybe I'll learn more by doing it both ways.
I've been working on the first compiler off and on for about a month, but haven't gotten nearly as far as I'd like.
This journal has a three-fold purpose:
1) It will be a place to organize all my thoughts, ideas, misguided first attempts, and lessons learned.
2) It will keep me accountable to finish this project -- and provide a record of my progress.
3) It will, I hope, enable me to get feedback and advice from those who have gone before.
Thanks for taking the time to read this. I'll be posting more as I get it organized.
I look forward to seeing your progress.
The Parrot Virtual Machine costs a lot less than a psychoanalyst.
Hm, I used to think that too, some five years ago....