Module grammar

David Herman dherman at mozilla.com
Fri Jul 1 10:05:35 PDT 2011


Thanks-- missed one when manually doing s/ImportPath/ImportBinding/g. Fixed.

Thanks,
Dave

On Jul 1, 2011, at 9:55 AM, Kam Kasravi wrote:

> Should this 
> 
> ImportDeclaration(load) ::= "import" ImportBinding(load) ("," ImportBinding(load))* ";"
> ImportPath(load) ::= ImportSpecifierSet "from" ModuleExpression(load)
> ImportSpecifierSet ::= "*"
>                     | IdentifierName
>                     | "{" (ImportSpecifier ("," ImportSpecifier)*)? ","? "}"
> ImportSpecifier ::= IdentifierName (":" Identifier)?
> Be this?
> 
> ImportDeclaration(load) ::= "import" ImportBinding(load) ("," ImportBinding(load))* ";"
> ImportBinding(load) ::= ImportSpecifierSet "from" ModuleExpression(load)
> ImportSpecifierSet ::= "*"
>                     | IdentifierName
>                     | "{" (ImportSpecifier ("," ImportSpecifier)*)? ","? "}"
> ImportSpecifier ::= IdentifierName (":" Identifier)?
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110701/061155e1/attachment.html>


More information about the es-discuss mailing list