Re: Sputnik test result (was Re: ECMAScript support broken?)

2011-01-26 Thread Ludovic Courtès
Hi, l...@gnu.org (Ludovic Courtès) writes: Noah Lavine noah.b.lav...@gmail.com writes: The attached patch should add support for ECMAScript unicode literals. I applied this one, along with corresponding test cases. Can you please resubmit the remaining patches with test case(s) for each,

Re: Sputnik test result (was Re: ECMAScript support broken?)

2011-01-26 Thread Noah Lavine
Hi, I finally applied them and wrote the test cases by myself. Thanks a lot! Thanks again for the patches, but please do write test cases next time. I will do that. Sorry for the delay - I've been quite busy lately, and basically all of my Guile mail has been sitting in my inbox waiting to

Re: Sputnik test result (was Re: ECMAScript support broken?)

2011-01-17 Thread Ludovic Courtès
Hi, Thanks for looking into this! Noah Lavine noah.b.lav...@gmail.com writes: The attached patch should add support for ECMAScript unicode literals. I applied this one, along with corresponding test cases. Can you please resubmit the remaining patches with test case(s) for each, and each in

Re: Sputnik test result (was Re: ECMAScript support broken?)

2011-01-11 Thread Noah Lavine
Hello, The attached patch should add support for ECMAScript unicode literals. Noah On Tue, Jan 4, 2011 at 4:23 AM, Kan-Ru Chen ka...@kanru.info wrote: Hi, Noah Lavine noah.b.lav...@gmail.com writes: If you mean give guile a '.js' file have it interpret that with ecmascript, then I think

Re: Sputnik test result (was Re: ECMAScript support broken?)

2011-01-11 Thread Noah Lavine
And this fixes an error that came because Unicode 00A0 (no-break space) is supposed to be considered whitespace in ECMAScript. Noah On Tue, Jan 11, 2011 at 5:33 PM, Noah Lavine noah.b.lav...@gmail.com wrote: This patch fixes a lot of the unexpected token: rbrace errors that had been messing up

Re: Sputnik test result (was Re: ECMAScript support broken?)

2011-01-11 Thread Noah Lavine
And this fixes hexadecimal constants. Guile now parses all Sputnik tests for numeric literals. Noah On Tue, Jan 11, 2011 at 5:59 PM, Noah Lavine noah.b.lav...@gmail.com wrote: This parses decimal numbers with leading zeros correctly. Noah On Tue, Jan 11, 2011 at 5:45 PM, Noah Lavine

Re: ECMAScript support broken?

2011-01-04 Thread Noah Lavine
Yes, I agree. On Tue, Jan 4, 2011 at 11:52 AM, Kan-Ru Chen ka...@kanru.info wrote: Hi, Noah Lavine noah.b.lav...@gmail.com writes: Hello, Here's a new version. I think the commit message is better - please let me know if this is not right. There's also a test for it. +       `(apply (@

Re: ECMAScript support broken?

2011-01-03 Thread Kan-Ru Chen
Hi, Noah Lavine noah.b.lav...@gmail.com writes: Hi all, I looked at this. For the first error, I think the bug is in (language ecmascript compile-tree-il), where the file around line 369 says: ((object . ,args) (@impl new-object (map (lambda (x)

Re: ECMAScript support broken?

2011-01-03 Thread Kan-Ru Chen
Noah Lavine noah.b.lav...@gmail.com writes: Hello again, Second problem solved as well. The attached patch fixes both issues. Anything else you notice being wrong with ecmascript? (I mean our implementation of it, of course ...) Hi, I got the same answer (previous mail), I should check

Re: ECMAScript support broken?

2011-01-03 Thread Ludovic Courtès
Hello Noah happy new year! Thanks for the patch! Can you resend it with a proper ChangeLog-style log and a corresponding test in ecmascript.test? That would be great. :-) Ludo’.

ECMAScript support broken?

2011-01-02 Thread Kan-Ru Chen
Hi, I recently want to start a small project that uses guile as the JavaScript interpreter, but the current git HEAD has errors regard object definition. --8---cut here---start-8--- scheme@(guile-user) ,L ecmascript Happy hacking with ECMAScript! To switch

Re: ECMAScript support broken?

2011-01-02 Thread Noah Lavine
Hi all, I looked at this. For the first error, I think the bug is in (language ecmascript compile-tree-il), where the file around line 369 says: ((object . ,args) (@impl new-object (map (lambda (x) (pmatch x

Re: ECMAScript support broken?

2011-01-02 Thread Noah Lavine
Hello again, Second problem solved as well. The attached patch fixes both issues. Anything else you notice being wrong with ecmascript? (I mean our implementation of it, of course ...) Noah On Sun, Jan 2, 2011 at 10:19 PM, Noah Lavine noah.b.lav...@gmail.com wrote: Hi all, I looked at this.