The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Mike Samuel <mikesam...@gmail.com>
Date: Tue, 8 May 2012 16:03:03 -0400
Local: Tues, May 8 2012 4:03 pm
Subject: Re: [closure-compiler-discuss] CFGs with Closures
2012/5/7 <kyle.t.de...@gmail.com>:
> Is it possible to generate a CFG for code within a closure using only
If by CFG, you mean context-free grammar, the grammatical production
> command line options? For example, with the following snippet: > var f = function(){ ... } > ...I get a CFG for the assignment to f, but not for whatever the code in {
> Thanks,
for { ... } in your example is the FunctionBody production as defined at http://es5.github.com/#x13 I believe Rhino just uses http://www.jarvana.com/jarvana/view/org/mozilla/rhino/1.7R3/rhino-1.7... as the node type since it allows FunctionDeclarations in any block which is not strictly allowed in ES5. There are additional syntactic constraints around break/continue labels and whether or not an enclosing function/program is in strict mode that are not expressed in that grammar. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||