[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[DotGNU]My Expression compiler : with Parrot support
From: |
Gopal V |
Subject: |
[DotGNU]My Expression compiler : with Parrot support |
Date: |
Sun, 20 Oct 2002 14:24:27 +0530 |
User-agent: |
Mutt/1.2.5i |
During the hours between the 2 meetings, I whiled my time
away by re-writing the Expression compiler . The new example
rocks !.
It supports
*) Variables (Int only)
*) ifelse,for,while
*) print "string"|int
As well as generates IL or Parrot code from the expression..
It is a nice example for anyone trying to handle ASTs in
compilers ... the nodes.tc is a simple & relatively clean example
of a one pass codegeneration using trecc.
See it a http://symonds.net/~gopalv82/code/expr_compiler.tgz
Gopal
--
The difference between insanity and genius is measured by success
- [DotGNU]My Expression compiler : with Parrot support,
Gopal V <=