On 06/01/11 01:32, Kam Kasravi wrote:


On May 31, 2011, at 4:20 PM, Waldemar Horwat<[email protected]>  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

The grammar is the AST.  You attach semantic rules directly to the grammar 
productions.

    Waldemar
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to