archives

« Bugzilla Issues Index

#96 — Modules: Shouldn't ProgramElement contain ModuleDeclaration?


http://wiki.ecmascript.org/doku.php?id=harmony:modules

Currently the syntax for ProgramElement is

ProgramElement(load) ::= Statement
| VariableDeclaration
| FunctionDeclaration
| ImportDeclaration(load)
| ExportDeclaration(load)

I would expect this to contain ModuleDeclaraion(load) so that a module can be decclared at the top level. For example:

module m {}


Yes, thanks for the catch. I've updated the wiki.

Dave