@@ -327,12 +327,18 @@ It decodes into a vector of :ref:`element segments <syntax-elem>` that represent
327
327
\production {element section} & \Belemsec &::=&
328
328
\X {seg}^\ast {:}\Bsection _9 (\Bvec (\Belem )) &\Rightarrow & \X {seg} \\
329
329
\production {element segment} & \Belem &::=&
330
- \hex {00 }~~e{:}\Bexpr ~~y^\ast {:}\Bvec (\Bfuncidx )
331
- &\Rightarrow & \{ \ETABLE ~0 , \EOFFSET ~e, \EINIT ~((\REFFUNC ~y)~\END )^\ast \} \\ &&|&
332
- \hex {01 }~~\X {et}:\Belemtype ~e^\ast {:}\Bvec (\Belemexpr )
330
+ \hex {00 }~~o{:}\Bexpr ~~y^\ast {:}\Bvec (\Bfuncidx )
331
+ &\Rightarrow & \{ \ETABLE ~0 , \EOFFSET ~o, \ETYPE ~\FUNCREF , \EINIT ~((\REFFUNC ~y)~\END )^\ast \} \\ &&|&
332
+ \hex {01 }~~\hex {00 }~~y^\ast {:}\Bvec (\Bfuncidx )
333
+ &\Rightarrow & \{ \ETYPE ~\FUNCREF , \EINIT ~((\REFFUNC ~y)~\END )^\ast \} \\ &&|&
334
+ \hex {02 }~~x{:}\Btableidx ~~o{:}\Bexpr ~~\hex {00 }~~y^\ast {:}\Bvec (\Bfuncidx )
335
+ &\Rightarrow & \{ \ETABLE ~x, \EOFFSET ~o, \ETYPE ~\FUNCREF , \EINIT ~((\REFFUNC ~y)~\END )^\ast \} \\ &&|&
336
+ \hex {04 }~~o{:}\Bexpr ~e^\ast {:}\Bvec (\Belemexpr )
337
+ &\Rightarrow & \{ \ETABLE ~0 , \EOFFSET ~o, \ETYPE ~\FUNCREF , \EINIT ~e^\ast \} \\ &&|&
338
+ \hex {05 }~~\X {et}:\Belemtype ~~e^\ast {:}\Bvec (\Belemexpr )
333
339
&\Rightarrow & \{ \ETYPE ~et, \EINIT ~e^\ast \} \\ &&|&
334
- \hex {02 }~~x{:}\Btableidx ~~e {:}\Bexpr ~~y ^\ast {:}\Bvec (\Bfuncidx )
335
- &\Rightarrow & \{ \ETABLE ~x, \EOFFSET ~e , \EINIT ~(( \REFFUNC ~y)~ \END ) ^\ast \} \\
340
+ \hex {06 }~~x{:}\Btableidx ~~o {:}\Bexpr ~~\X {et}: \Belemtype ~~e ^\ast {:}\Bvec (\Belemexpr )
341
+ &\Rightarrow & \{ \ETABLE ~x, \EOFFSET ~o , \ETYPE ~et, \EINIT ~e ^\ast \} \\
336
342
\production {elemexpr} & \Belemexpr &::=&
337
343
\hex {D0 }~\hex {0 B} &\Rightarrow & \REFNULL ~\END \\ &&|&
338
344
\hex {D2 }~x{:}\Bfuncidx ~\hex {0 B} &\Rightarrow & (\REFFUNC ~x)~\END \\
0 commit comments