Any blogs to help orient me re the reference implementation?contrasting with F#

Michael Daumling mdaeumli at adobe.com
Thu Mar 20 02:18:02 PDT 2008


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: es4-discuss-bounces at mozilla.org
[mailto:es4-discuss-bounces at mozilla.org] On Behalf Of Jeff Dyer
Sent: Wednesday, March 19, 2008 4:01 PM
To: ToolmakerSteve98; es4-discuss at mozilla.org
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
Es4-discuss at mozilla.org
https://mail.mozilla.org/listinfo/es4-discuss



More information about the Es4-discuss mailing list