A toy wasm interpreter written in Swift.
Since the community has many wasm implementations, both inside and outside the browser, why write another one? Emmmmm... just want to learn wasm.
What I cannot create, I do not understand. - Richard Feynman
- Binary
- Types Swift structs translated from Wasm binary format
- Docoder Wasm binary format decoder
- Interpreter
- Operand stack
- Memory
- Control stack
- Global
- Instructions
- Parametric Instructions
- Numeric Instructions
- Memory Instructions
- Variable Instructions
- Control Instructions
- Error handling
- Parse
- Interpreter
- Validator
- Module validator
- Code validator
- Tests
- Instructions
- Hello World
- Fibonacci
- Factorial
- Memory
- Calc
Special thanks to zxh0/wasmgo-book