Re: new ECMA262 5.1 engine

2011-10-23 Thread Yusuke Suzuki
> > In ES5, it should be a syntax error. The positive look-ahead is an > Assertion, not an Atom, and quantifiers can only be applied to Atoms. > In ES3, the regexp will not match the string literal. Putting > quantifiers on look-aheads is always unnecessary in ECMAScript, since > it's always equiva

Re: new ECMA262 5.1 engine

2011-10-22 Thread Lasse Reichstein
On Sat, Oct 22, 2011 at 5:30 PM, Yusuke Suzuki wrote: > BTW, I thought that the example in > http://wiki.ecmascript.org/doku.php?id=strawman:match_web_reality_spec >  exec(/(?=a)+/, ""); > should return false. Is it right? In ES5, it should be a syntax error. The positive look-ahead is an Assert

Re: new ECMA262 5.1 engine

2011-10-22 Thread Yusuke Suzuki
> contributions to test262 test262 is great, thanks! > see http://wiki.ecmascript.org/doku.php?id=harmony:regexp_match_web_reality Oh, Thanks. This is very good document. I saw http://wiki.ecmascript.org/doku.php?id=harmony:regexp_match_web_reality and http://wiki.ecmascript.org/doku.php?id=stra

Re: new ECMA262 5.1 engine

2011-10-21 Thread Allen Wirfs-Brock
On Oct 20, 2011, at 10:17 PM, Yusuke Suzuki wrote: > > > And, I tried to implement RegExp.prototype.compile, but ES5 and ES3 > not defined its standard behavior and I thought compile method is > changing RegExp#source / #global / #ignoreCase / #multiline which > writable attribute are false and

Re: new ECMA262 5.1 engine

2011-10-21 Thread David Bruant
Wow! That is quite some work that you've done here. Implementing an ES5 interpreter and contributions to test262. Well, congratulations and thank you ! David Le 21/10/2011 07:17, Yusuke Suzuki a écrit : > I got reply from Mr. Fugate, used test262 commad-line runner for lv5, > got some bugs in eng

Re: new ECMA262 5.1 engine

2011-10-20 Thread Yusuke Suzuki
I got reply from Mr. Fugate, used test262 commad-line runner for lv5, got some bugs in engine (JSON quote process and RegExp escape had a bug. now fixed). Thanks for this great test suite! Now, some test262 test cases are failed, but these failures have reasons. First I found test262 bugs. So I h

Re: new ECMA262 5.1 engine

2011-10-20 Thread Juriy Zaytsev
How does it fair on test262? http://test262.ecmascript.org/ -- kangax On Wed, Oct 19, 2011 at 6:26 AM, Yusuke Suzuki wrote: > Hello. > > I wrote new ECMA262 5.1 full support engine "iv / lv5" in C++. > This is highly inspired from JSC, V8 and SpiderMonkey. (especially JSC) > > https://github.co

new ECMA262 5.1 engine

2011-10-19 Thread Yusuke Suzuki
Hello. I wrote new ECMA262 5.1 full support engine "iv / lv5" in C++. This is highly inspired from JSC, V8 and SpiderMonkey. (especially JSC) https://github.com/Constellation/iv This aims at most precise engine to ECMA262 5.1 specification. (like the great engine,) I read ECMA262 and wanted pre