On Sunday 09 July 2006 02:15, Vishal Soni wrote: > I am not an expert on which approach is the way to go: > 1. Hack Mozilla's JavaScript excution engine to generate PIR.
If there's a fairly direct correspondence between JS bytecode (if there is such a thing; I have no idea -- whatever internal ops it uses to represent a program to execute), this may be easiest to start. > 2. Use the Compiler Tool Chain developed by Parrot Wizards to implement > JavaScript engine. This is probably the best long-term approach, at least if you find someone good to write the grammar. (I hate parsing.) Both approaches will probably need the same custom PMCs and built-ins, so whichever approach gets you to that point first is the most reasonable choice, in my opinion. -- c