From: Mark Date: 2004-02-28T17:36:53+09:00 Subject: Re: Ruby Compiler [was Introducing myself and my interest in ruby] Mark Hubbart wrote: > > What are the chances of Cardinal having the ability to emit more than > one type of code structure for the tree it parses? Could it possibly > end up pluggable? > > It is my intention to do exactly this. The plan is to write a class that outputs the correct code structure and to pass an instance of that class into the compiler. This is necessary since at somepoint the intermediate compiler will be enhanced so that it can accept an abstract syntax tree and generate the parrot byte code from that. So at that point it will be very useful to be able to switch from outputting intermediate compiler code to just serialising the AST. -- Mark Sparshatt