Commit graph

12 commits

Author SHA1 Message Date
luccie-cmd
28420f53b0 Added executing of and 2025-03-30 15:00:17 +02:00
luccie-cmd
2dc07080dd Add every single instruction prototype for WASM VM 2025-03-29 20:17:52 +01:00
Ernesto Lanchares
16343878cd Started adding all of IR opcodes 2025-03-29 19:31:08 +01:00
Ernesto Lanchares
7023261320 Changed structs in the VM 2025-03-29 19:16:17 +01:00
luccie-cmd
8d39d3d4d0 Added executing of mod IR in the WASM VM 2025-03-28 19:48:15 +01:00
Ernesto Lanchares
dd3dc54b05 Fixing format.
Should we run zig fmt as a prehook? or maybe after
pushing?
2025-03-27 17:04:49 +01:00
luccie-cmd
1db7f9e506 Fix branching and VM
Signed-off-by: luccie-cmd <luccie@sideros.org>
2025-03-27 13:57:37 +01:00
Lorenzo Torres
7660bc09bc fixed leb128 integer decoding 2025-03-23 22:40:03 +01:00
Ernesto Lanchares
b7854d7325 Big rework of the parser!
It now follows a more functional style but it
should be waaay easier to add functionality.

Probably the parser is a bit slower than the
previous one but the code is much cleaner and a
good enough compiler should be able to inline the
function calls and make it par with the previous
one.

As a TODO, runtime structs should not depends on
the parser, but I think that is a topic for
another commit.
2025-03-23 14:39:49 +01:00
luccie-cmd
94a4dc16c6 Fix formatting
Signed-off-by: luccie-cmd <luccie@sideros.org>
2025-03-21 22:49:43 +01:00
luccie-cmd
bbe9213573 Added block instruction in WASM VM
Signed-off-by: luccie-cmd <luccie@sideros.org>
2025-03-21 22:49:37 +01:00
Lorenzo Torres
1d64275dee Refactored source code structure. 2025-03-17 19:44:08 +01:00
Renamed from src/vm/vm.zig (Browse further)