[phc-general] Playing with XML output from phc
Edsko de Vries
edsko at phpcompiler.org
Fri Nov 3 11:01:42 CET 2006
On Thu, Nov 02, 2006 at 10:25:12PM +0100, Bernhard Schmalhofer wrote:
> a couple of weeks ago I had the idea to teach myself some XSLT.
> The project I came up with, is generation of PAST from the XML-AST-dump
> of phc. PAST is intermediate form for the Parrot virtual machine,
> So the plan is to have Parrot run some subset of PHP.
> I didn't get any further than 'Hello World!' yet. Mostly I was
> struggling with XSLT syntax
> and teaching Parrot about base64 encoded strings. The current state can
> be found in
> The project name 'Plumhead' comes from Plum-headed Parakeet,
> The next step is to map arithmetic expressions from phc-XML to PAST-XML.
That sounds very interesting, I'm curious how far XSLT will get you in
the long run. Your translation in the future might benefit from the
analysis we will do in phc (which will hopefully be linked back to the
AST), although I'm sad to say we haven't been doing very much work on
phc due to Real Work obligations :)
If you want me to provide a link to your website from the phc spinoffs
page, I'd be happy to do so.
Either way, keep us posted!
More information about the phc-general