Module grammar

Kam Kasravi kamkasravi at yahoo.com
Fri Jul 1 09:55:19 PDT 2011


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)?

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


More information about the es-discuss mailing list