Ticket #112 (closed enhancement)
implement modules
Reported by: | dherman | Owned by: | dherman |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | dherman/javascript.plt | Keywords: | |
Cc: | Version: | ||
Racket Version: | 4.0 |
Description
Implement a #lang module language that supports imports and exports using the following grammar:
Declaration ::= ... | Import | Export Import ::= 'import' (ImportSpec)','+ ';'? Export ::= 'export' (ExportSpec)','+ ';'? Names ::= Identifier | StringLiteral | '(' (Identifier | StringLiteral)','+ ')' ImportSpec ::= ModuleName '.' '*' ('-' Names)? | ModuleName '.' Identifier ('as' Identifier)? | ModuleName '[' StringLiteral ']' 'as' Identifier ExportSpec ::= Identifier ('as' Identifier)?
Change History
Note: See
TracTickets for help on using
tickets.