Skip to content

Commit 1ea51b7

Browse files
committed
Cleanup
1 parent b318635 commit 1ea51b7

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

parsing/parser.mly

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,8 +1017,6 @@ The precedences must be listed from low to high.
10171017
{ mkpat ~loc:$sloc $1 }
10181018
%inline mktyp(symb): symb
10191019
{ mktyp ~loc:$sloc $1 }
1020-
%inline mkstr(symb): symb
1021-
{ mkstr ~loc:$sloc $1 }
10221020
%inline mksig(symb): symb
10231021
{ mksig ~loc:$sloc $1 }
10241022
%inline mkmod(symb): symb
@@ -1523,12 +1521,10 @@ structure:
15231521
structure_item:
15241522
let_bindings(ext)
15251523
{ val_of_let_bindings ~loc:$sloc $1 }
1526-
| mkstr(
1527-
floating_attribute
1528-
{ Pstr_attribute $1 }
1529-
)
15301524
| wrap_mkstr_ext(
1531-
primitive_declaration
1525+
floating_attribute
1526+
{ Pstr_attribute $1, None }
1527+
| primitive_declaration
15321528
{ pstr_primitive $1 }
15331529
| value_description
15341530
{ pstr_primitive $1 }
@@ -1556,13 +1552,11 @@ structure_item:
15561552

15571553
(* A local structure item (= can appear in let expressions) *)
15581554
local_structure_item:
1559-
| mkstr(
1555+
wrap_mkstr_ext(
15601556
item_extension post_item_attributes
15611557
{ let docs = symbol_docs $sloc in
1562-
Pstr_extension ($1, add_docs_attrs docs $2) }
1563-
)
1564-
| wrap_mkstr_ext(
1565-
sig_exception_declaration
1558+
Pstr_extension ($1, add_docs_attrs docs $2), None }
1559+
| sig_exception_declaration
15661560
{ pstr_exception $1 }
15671561
| module_binding
15681562
{ pstr_module $1 }

0 commit comments

Comments
 (0)