|Interpreter advice required email@example.com (2002-04-29)|
|Re: Interpreter advice required firstname.lastname@example.org (2002-05-03)|
|Re: Interpreter advice required email@example.com (Per Bothner) (2002-05-08)|
|From:||firstname.lastname@example.org (James Willans)|
|Date:||29 Apr 2002 01:52:51 -0400|
|Posted-Date:||29 Apr 2002 01:52:50 EDT|
I often read this newsgroup and was hoping that you may be able to
offer me some advice.
I'm working on implementing an interpreter (in Java) for a small
object-oriented prototype language (based on Abadi's and Cardelli's
sigma calculus, but with a larger syntax). I have little background
in compiler theory, but have been making steady progress towards
achieving my goal. Thus far I have implemented a parser using javacc
which builds an abstract syntax tree. The next step, as far as I can
see, is to traverse this syntax tree and generate a stream of
instructions that will execute on a virtual machine. I plan to do
this by giving each syntax concepts knowledge about how to compile
themselves (probably simply a 'compile' method). The instructions
will then be executed on the virtual machine.
My problem is that I have little understanding about the runtime
organisation of object oriented programs. I have been using Watt's
"Programming language processors in Java" which has helped a lot, but
doesn't deal indepth with how to make decisions about the form the
virtual machine will take given the language that is going to be
interpreted (clearly it is not necessary to simulate a real machine).
In fact, most books I have looked at don't deal with object oriented
programming language interpretation.
Any pointers to useful material is greatly appreciated.
Return to the
Search the comp.compilers archives again.