Changes between Version 6 and Version 7 of Language/Declarations
- Timestamp:
- 06/25/09 02:16:50 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Language/Declarations
v6 v7 15 15 16 16 Although we use semicolons as terminators instead of separators, in all cases the parser will accept a missing semicolon before a closing brace. 17 18 At the moment import and export decls are accepted in any order, but they shouldn't be #91. 17 19 18 20 [[br]] … … 37 39 ::= import ModuleId 38 40 | import { ModuleId;+ } 39 | foreign import String Var :: Type 40 }}} 41 42 Foreign imports define the type of an external symbol. 43 44 [[br]] 41 }}} 45 42 46 43 == !TopDecl == … … 48 45 TopDecl 49 46 ::= Pragma 47 | ForeignImportDecl 50 48 | InfixDecl 51 49 | TypeKind … … 74 72 75 73 74 == !ForeignImportDecl == 75 {{{ 76 ForeignImportDecl 77 ::= foreign import String Var :: Type 78 | foreign import data String Con :: Kind 79 | foreign import data String Con 80 }}} 81 82 Foreign imports define the type of an external symbol. 83 84 [[br]] 85 86 87 76 88 == !InfixDecl == 77 89
