summaryrefslogtreecommitdiff
path: root/src/mods/Parser.zig
diff options
context:
space:
mode:
authorErnesto Lanchares <elancha98@proton.me>2025-03-23 18:20:38 +0000
committerLorenzo Torres <torres@sideros.org>2025-03-23 19:32:10 +0100
commit874134f3ff726d969fd901fee18c1aceb415c03b (patch)
tree5cd25aba47d6dc91737a2794622fe8dc21a8b9f6 /src/mods/Parser.zig
parentb7854d7325dfe35ca41e56dcccfb8fb7b7d0aa22 (diff)
PROPOSAL: IR
This is a proposal of a custom IR to run wasm. At the moment only `ir.zig` has some parts related to this IR. The idea of the IR is to be a subset of the one defined in wasm. There are some gaps (mostly in wasm instructions that have opcode 0xFC) but in wasm they don't use all of the opcodes for some reason so maybe we could try to utilize them and be a superset of wasm.
Diffstat (limited to 'src/mods/Parser.zig')
-rw-r--r--src/mods/Parser.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mods/Parser.zig b/src/mods/Parser.zig
index 29f18d8..d9f7ccf 100644
--- a/src/mods/Parser.zig
+++ b/src/mods/Parser.zig
@@ -144,7 +144,7 @@ fn parseReftype(self: *Parser) !std.wasm.RefType {
// NOTE: Parsing of Valtype can be improved but it makes it less close to spec so...
// TODO: Do we really need Valtype?
-const Valtype = union(enum) {
+pub const Valtype = union(enum) {
val: std.wasm.Valtype,
ref: std.wasm.RefType,
};