The reference types proposal includes some new instructions not supported in this grammar.
Concretely, I believe the missing things are
externref and funcref as value types
funcref as a value type (it was already a legal table type)
- new instructions for working with references:
ref.null externref|funcref, ref.is_null, and ref.func funcidx
- new instructions for working with tables
- not going to link examples of them all individually, but the
table_* tests in this directory cover them
- a change to
call_indirect to support table indexes
- a change to
select to allow select (result $type)
I started writing a PR for this, but I'm new to Sublime grammars and got bogged down in some of the details and complexity, so I'm opening this issue instead.
The reference types proposal includes some new instructions not supported in this grammar.
Concretely, I believe the missing things are
externrefandfuncrefas value typesfuncrefas a value type (it was already a legal table type)ref.null externref|funcref,ref.is_null, andref.func funcidxref.nullexampleref.is_nullexampleref.funcexampletable_*tests in this directory cover themcall_indirectto support table indexesselectto allowselect (result $type)I started writing a PR for this, but I'm new to Sublime grammars and got bogged down in some of the details and complexity, so I'm opening this issue instead.