Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

aardvark92 (7508)

aardvark92
  (email not shown publicly)
http://www.brucealderman.info/

Journal of aardvark92 (7508)

Monday May 28, 2007
01:19 PM

simple parrot test language

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.