Are the XML elements in that grammar just an oversight, or is this a placeholder for future implementations of ECMA-357? E4X is not supposed to be part of ES4.
Michael ---------------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Dyer Sent: Wednesday, March 19, 2008 4:01 PM To: ToolmakerSteve98; [email protected] Subject: Re: Any blogs to help orient me re the reference implementation?contrasting with F# On 3/19/08 2:40 PM, ToolmakerSteve98 wrote: > I'm especially interested in the parser. Maybe will be obvious once I > start looking, but might as well learn what I can the easy way. Bottom-up? > top-down? grammar notation used? Based on some pre-existing parser > combinator library? Take a look at the grammar Graydon just mentioned at: http://www.ecmascript.org/es4/spec/grammar.pdf You'll see a pretty obvious mapping to a top-down predictive parser in two implementations: 1/The ES4-RI in SML 2/tamarin-central front-end in ES4 (http://hg.mozilla.org/tamarin-central/?file/fbd209c1fe58/esc/src/parse. es) That should get you started. Jd _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss
