[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LPEG code for JavaScript grammar?
- From: "John Belmonte" <john@...>
- Date: Sat, 12 Apr 2008 09:08:24 -0400
On Thu, Apr 3, 2008 at 5:03 PM, Duck <duck@roaming.ath.cx> wrote:
>
> I suppose I mean "a grammar for the language specified in
> ECMA-262 ECMAScript Language Specification 3rd edition" :-)
>
> A big ask, I know, but...does LPEG code for this exist? If not, does
> anyone have a PEG grammar in some textual form which might be converted
> fairly simply into an LPEG-based equivalent?
Not really what you asked for, but for those who enjoy reading
JavaScript take a look at the jsdefs and jsparse files of Narcissus
(http://lxr.mozilla.org/mozilla/source/js/narcissus/).