ES parsing tools (Re: Short Functions)
kamkasravi at yahoo.com
Wed Jun 1 01:32:43 PDT 2011
On May 31, 2011, at 4:20 PM, Waldemar Horwat <waldemar at google.com> wrote:
> On 05/29/11 19:35, Kam Kasravi wrote:
>> Does Waldemar still maintain the tool? the source dates seemed fairly old...
> It still works. I didn't bother updating the ES3 parser for ES5 because I had already explored the same syntax as part of ES4 and it worked. I'm going to update it for ES.next.
> The code does more than just validate the lexical and syntactic grammars. It can encode semantics and evaluate ECMAScript expressions directly from the semantics. It also validates things like that there are no contexts in the grammar where a / would be both a division symbol and the start of a regular expression.
Thanks, sounds like a great tool. Do you build an ast along the lines of the parser API? https://developer.mozilla.org/en/SpiderMonkey/Parser_API
More information about the es-discuss