@@ -327,36 +327,36 @@ It decodes into a vector of :ref:`element segments <syntax-elem>` that represent
327327 \production {element section} & \Belemsec &::=&
328328 \X {seg}^\ast {:}\Bsection _9 (\Bvec (\Belem )) &\Rightarrow & \X {seg} \\
329329 \production {element segment} & \Belem &::=&
330- \hex { 00 } ~~e{:}\Bexpr ~~y^\ast {:}\Bvec (\Bfuncidx )
330+ 0 {:}\Bu 32 ~~e{:}\Bexpr ~~y^\ast {:}\Bvec (\Bfuncidx )
331331 &\Rightarrow & \\&&&\quad
332332 \{ \ETYPE ~\FUNCREF , \EINIT ~((\REFFUNC ~y)~\END )^\ast , \EMODE ~\EACTIVE ~\{ \ETABLE ~0 , \EOFFSET ~e \} \} \\ &&|&
333- \hex { 01 } ~~\X {et}:\Belemkind ~~y^\ast {:}\Bvec (\Bfuncidx )
333+ 1 {:}\Bu 32 ~~\X {et}:\Belemkind ~~y^\ast {:}\Bvec (\Bfuncidx )
334334 &\Rightarrow & \\&&&\quad
335335 \{ \ETYPE ~\X {et}, \EINIT ~((\REFFUNC ~y)~\END )^\ast , \EMODE ~\EPASSIVE \} \\ &&|&
336- \hex { 02 } ~~x{:}\Btableidx ~~e{:}\Bexpr ~~\X {et}:\Belemkind ~~y^\ast {:}\Bvec (\Bfuncidx )
336+ 2 {:}\Bu 32 ~~x{:}\Btableidx ~~e{:}\Bexpr ~~\X {et}:\Belemkind ~~y^\ast {:}\Bvec (\Bfuncidx )
337337 &\Rightarrow & \\&&&\quad
338338 \{ \ETYPE ~\X {et}, \EINIT ~((\REFFUNC ~y)~\END )^\ast , \EMODE ~\EACTIVE ~\{ \ETABLE ~x, \EOFFSET ~e \} \} \\ &&|&
339- \hex { 03 } ~~\X {et}:\Belemkind ~~y^\ast {:}\Bvec (\Bfuncidx )
339+ 3 {:}\Bu 32 ~~\X {et}:\Belemkind ~~y^\ast {:}\Bvec (\Bfuncidx )
340340 &\Rightarrow & \\&&&\quad
341341 \{ \ETYPE ~\X {et}, \EINIT ~((\REFFUNC ~y)~\END )^\ast , \EMODE ~\EDECLARATIVE \} \\ &&|&
342- \hex { 04 } ~~e{:}\Bexpr ~~\X {el}^\ast {:}\Bvec (\Bexpr )
342+ 4 {:}\Bu 32 ~~e{:}\Bexpr ~~\X {el}^\ast {:}\Bvec (\Bexpr )
343343 &\Rightarrow & \\&&&\quad
344344 \{ \ETYPE ~\FUNCREF , \EINIT ~\X {el}^\ast , \EMODE ~\EACTIVE ~\{ \ETABLE ~0 , \EOFFSET ~e \} \} \\ &&|&
345- \hex { 05 } ~~\X {et}:\Breftype ~~\X {el}^\ast {:}\Bvec (\Bexpr )
345+ 5 {:}\Bu 32 ~~\X {et}:\Breftype ~~\X {el}^\ast {:}\Bvec (\Bexpr )
346346 &\Rightarrow & \\&&&\quad
347347 \{ \ETYPE ~et, \EINIT ~\X {el}^\ast , \EMODE ~\EPASSIVE \} \\ &&|&
348- \hex { 06 } ~~x{:}\Btableidx ~~e{:}\Bexpr ~~\X {et}:\Breftype ~~\X {el}^\ast {:}\Bvec (\Bexpr )
348+ 6 {:}\Bu 32 ~~x{:}\Btableidx ~~e{:}\Bexpr ~~\X {et}:\Breftype ~~\X {el}^\ast {:}\Bvec (\Bexpr )
349349 &\Rightarrow & \\&&&\quad
350350 \{ \ETYPE ~et, \EINIT ~\X {el}^\ast , \EMODE ~\EACTIVE ~\{ \ETABLE ~x, \EOFFSET ~e \} \} \\ &&|&
351- \hex { 07 } ~~\X {et}:\Breftype ~~\X {el}^\ast {:}\Bvec (\Bexpr )
351+ 7 {:}\Bu 32 ~~\X {et}:\Breftype ~~\X {el}^\ast {:}\Bvec (\Bexpr )
352352 &\Rightarrow & \\&&&\quad
353353 \{ \ETYPE ~et, \EINIT ~\X {el}^\ast , \EMODE ~\EDECLARATIVE \} \\
354354 \production {element kind} & \Belemkind &::=&
355355 \hex {00 } &\Rightarrow & \FUNCREF \\
356356 \end {array}
357357
358358 .. note ::
359- The initial byte can be interpreted as a bitfield.
359+ The initial integer can be interpreted as a bitfield.
360360 Bit 0 indicates a passive or declarative segment,
361361 bit 1 indicates the presence of an explicit table index for an active segment and otherwise distinguishes passive from declarative segments,
362362 bit 2 indicates the use of element type and element :ref: `expressions <binary-expr >` instead of element kind and element indices.
@@ -440,16 +440,16 @@ It decodes into a vector of :ref:`data segments <syntax-data>` that represent th
440440 \production {data section} & \Bdatasec &::=&
441441 \X {seg}^\ast {:}\Bsection _{11 }(\Bvec (\Bdata )) &\Rightarrow & \X {seg} \\
442442 \production {data segment} & \Bdata &::=&
443- \hex { 00 } ~~e{:}\Bexpr ~~b^\ast {:}\Bvec (\Bbyte )
443+ 0 {:}\Bu 32 ~~e{:}\Bexpr ~~b^\ast {:}\Bvec (\Bbyte )
444444 &\Rightarrow & \{ \DINIT ~b^\ast , \DMODE ~\DACTIVE ~\{ \DMEM ~0 , \DOFFSET ~e \} \} \\ &&|&
445- \hex { 01 } ~~b^\ast {:}\Bvec (\Bbyte )
445+ 1 {:}\Bu 32 ~~b^\ast {:}\Bvec (\Bbyte )
446446 &\Rightarrow & \{ \DINIT ~b^\ast , \DMODE ~\DPASSIVE \} \\ &&|&
447- \hex { 02 } ~~x{:}\Bmemidx ~~e{:}\Bexpr ~~b^\ast {:}\Bvec (\Bbyte )
447+ 2 {:}\Bu 32 ~~x{:}\Bmemidx ~~e{:}\Bexpr ~~b^\ast {:}\Bvec (\Bbyte )
448448 &\Rightarrow & \{ \DINIT ~b^\ast , \DMODE ~\DACTIVE ~\{ \DMEM ~x, \DOFFSET ~e \} \} \\
449449 \end {array}
450450
451451 .. note ::
452- The initial byte can be interpreted as a bitfield.
452+ The initial integer can be interpreted as a bitfield.
453453 Bit 0 indicates a passive segment,
454454 bit 1 indicates the presence of an explicit memory index for an active segment.
455455
0 commit comments