Skip to content

Commit

Permalink
Remove limit64 from parser.mly (#61)
Browse files Browse the repository at this point in the history
This was left over from when we had both 64-bit and 32-bit limits
  • Loading branch information
sbc100 authored Jun 3, 2024
1 parent 884edf3 commit d75e87e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions interpreter/text/parser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,14 @@ func_type_result :
{ $3 @ $5 }

table_type :
| value_type limits64 ref_type { TableType ($2, index_type_of_value_type $1 $sloc, $3) }
| limits64 ref_type { TableType ($1, I32IndexType, $2) }
| value_type limits ref_type { TableType ($2, index_type_of_value_type $1 $sloc, $3) }
| limits ref_type { TableType ($1, I32IndexType, $2) }

memory_type :
| value_type limits64 { MemoryType ($2, index_type_of_value_type $1 $sloc) }
| limits64 { MemoryType ($1, I32IndexType) }
| value_type limits { MemoryType ($2, index_type_of_value_type $1 $sloc) }
| limits { MemoryType ($1, I32IndexType) }

limits64 :
limits :
| NAT { {min = nat64 $1 $loc($1); max = None} }
| NAT NAT { {min = nat64 $1 $loc($1); max = Some (nat64 $2 $loc($2))} }

Expand Down

0 comments on commit d75e87e

Please sign in to comment.