Re: Java Script in Parrot

2006-07-11 Thread Will Coleda
Punie has an example of optok parsing. APL has an example of utf-8 grammar. Regards. On Jul 11, 2006, at 12:37 AM, Vishal Soni wrote: Thanks Chris I looked at it but it does not implement Unicode in PGE and Optok too.. On Mon, 2006-07-10 at 23:30 -0500, Chris Dolan wrote: On Jul 10, 20

Re: Java Script in Parrot

2006-07-10 Thread Vishal Soni
Thanks Chris I looked at it but it does not implement Unicode in PGE and Optok too.. On Mon, 2006-07-10 at 23:30 -0500, Chris Dolan wrote: > On Jul 10, 2006, at 4:31 PM, Vishal Soni wrote: > > > This is is a good starting point. I have been writing the > > JavaScript grammar > > in PGE fromE

Re: Java Script in Parrot

2006-07-10 Thread Chris Dolan
On Jul 10, 2006, at 4:31 PM, Vishal Soni wrote: This is is a good starting point. I have been writing the JavaScript grammar in PGE fromECMA-262 spec. They lay out the operator precedence using Grammar rules. Instead of using rules for operator precedence I would like to use your optok appr

Re: Java Script in Parrot

2006-07-10 Thread Vishal Soni
Hi Patrick, This is is a good starting point. I have been writing the JavaScript grammar in PGE fromECMA-262 spec. They lay out the operator precedence using Grammar rules. Instead of using rules for operator precedence I would like to use your optok approach. Is there some help I can get? I did

Re: Java Script in Parrot

2006-07-10 Thread Patrick R. Michaud
On Mon, Jul 10, 2006 at 09:19:14PM +0100, Norman Nunley, Jr wrote: > There's a rules grammar in http://svn.openfoundry.org/pugs/misc/ > JavaScript-FrontEnd/Grammar.pm > > When I last attempted to compile it with PGE, it gave up the ghost in > the character class definitions. Wow, thanks for th

Re: Java Script in Parrot

2006-07-10 Thread Patrick R. Michaud
On Sun, Jul 09, 2006 at 04:11:55PM -0700, chromatic wrote: > 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 byt

Re: Java Script in Parrot

2006-07-09 Thread chromatic
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 o

Re: Java Script in Parrot

2006-07-09 Thread Mehmet Yavuz Selim Soyturk
I am too planning to implement ECMAScript. I do not yet know how, I have to experiment with parrot first.

Re: Java Script in Parrot

2006-07-09 Thread Vishal Soni
Hi Norman, I am also in the implementing Java Script for Parrot. But the approach I have taken is, that I picked up the ECMA-262 Spec 3rd Edition and I have implemented in Parrot Grammar Engine (PGE). Write now I have implemented more than half of Java Script grammar in PGE to compile correctly.

Re: Java Script in Parrot

2006-07-09 Thread Norman Nunley, Jr
I've started work on a Javascript implementation, but haven't gotten very far yet. I've starting with the Narcissus implementation from the Mozilla project. My current plan is to: 1. Identify any objects that need to be bootstrapped into PMCs. 2. Write a Compile phase that borrows logic from

Java Script in Parrot

2006-07-07 Thread Vishal Soni
Hi, Is any one working on Java Script(ECMA-262) implementation in Parrot? -- Thanks, Vishal