using SML for the ES4 spec

Graydon Hoare graydon at mozilla.com
Mon Oct 30 12:40:55 PST 2006


Stephen Weeks wrote:
> I have some SML code for manipulating Javascript that I wrote a while
> back which y'all might find useful.  The code follows the ES3 spec and
> includes:
> 
>   * An ML lex specification for Javascript tokens.
>   * An ML yacc specification for Javascript.
>   * A hand-crafted top-down-parser generator.
>   * A specification of Javascript's grammar that works with the
>     top-down-parser generator. 
>   * Datatypes for Javascript tokens and abstract syntax trees.
>   * A command-line tool for Javascript tokenization, parsing, and
>     pretty printing.
> 

I think that would be useful, yes. I'm curious what you did for Unicode 
in particular. We have constructed some subset of this material for ES4 
in the past week, but there is still much to do. It would be nice to 
have something to compare with, at least.

-graydon




More information about the Es4-discuss mailing list