Skip to content

Commit

Permalink
update syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijian committed Dec 4, 2023
1 parent 2bad320 commit 8419d92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ val_header : pub=ioption("pub") "let" binder=binder t=opt_annot {}
structure : list_semis(structure_item) EOF {}
structure_item:
| type_header=type_header deriving_=derive_directive {}
| type_header=type_header ty=type_ deriving_=derive_directive {}
| struct_header=struct_header "{" fs=list_semis(record_decl_field) "}" deriving_=derive_directive {}
| enum_header=enum_header "{" cs=list_semis(enum_constructor) "}" deriving_=derive_directive {}
| val_header=val_header "=" expr = expr {}
Expand Down

0 comments on commit 8419d92

Please sign in to comment.