-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
afaict the specification doesn't specify if you can have an enumeration type with no variants {||} (the grammar allows it, but I'm not sure if that's intentional, since uninhabited types behave very oddly).
The specification says you can have a bundle type with no fields but the grammar doesn't allow it:
Lines 4406 to 4415 in 9b0357e
| (* Bundle Types *) | |
| type_bundle = "{" , type_bundle_field , { type_bundle_field } , "}" ; | |
| type_bundle_field = [ "flip" ] , id , ":" , type ; | |
| (* Vec Types *) | |
| type_vec = type , "[" , int , "]" ; | |
| (* Enum Types *) | |
| type_enum = "{|" , { type_enum_alt } , "|}" ; | |
| type_enum_alt = id, [ ":" , type_constable ] ; |
Metadata
Metadata
Assignees
Labels
No labels