Skip to content

Commit d75e87e

Browse files
authored
Remove limit64 from parser.mly (WebAssembly#61)
This was left over from when we had both 64-bit and 32-bit limits
1 parent 884edf3 commit d75e87e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

interpreter/text/parser.mly

+5-5
Original file line numberDiff line numberDiff line change
@@ -325,14 +325,14 @@ func_type_result :
325325
{ $3 @ $5 }
326326

327327
table_type :
328-
| value_type limits64 ref_type { TableType ($2, index_type_of_value_type $1 $sloc, $3) }
329-
| limits64 ref_type { TableType ($1, I32IndexType, $2) }
328+
| value_type limits ref_type { TableType ($2, index_type_of_value_type $1 $sloc, $3) }
329+
| limits ref_type { TableType ($1, I32IndexType, $2) }
330330

331331
memory_type :
332-
| value_type limits64 { MemoryType ($2, index_type_of_value_type $1 $sloc) }
333-
| limits64 { MemoryType ($1, I32IndexType) }
332+
| value_type limits { MemoryType ($2, index_type_of_value_type $1 $sloc) }
333+
| limits { MemoryType ($1, I32IndexType) }
334334

335-
limits64 :
335+
limits :
336336
| NAT { {min = nat64 $1 $loc($1); max = None} }
337337
| NAT NAT { {min = nat64 $1 $loc($1); max = Some (nat64 $2 $loc($2))} }
338338

0 commit comments

Comments
 (0)