Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.11 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.11 KB

Swag

A toy wasm interpreter written in Swift.

Wait... but why 🤔

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

Under construction 👷‍♂️ 🚧

  • 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

Reference project ❤️

Special thanks to zxh0/wasmgo-book