In earlier articles, we have implemented a tokenizer, parser, and transformer to convert WAT syntax to a Wasm AST and got started on the code generation. This part will continue with code generation. We’ll start with the import section because it has a couple interesting complications that we need to take into account. The Import Section Consider this wat import statement: (module (import "wasi_snapshot_preview1" "fd_write" ( func $fd_write (param i32 i32 i32 i32) (result i32)) ) ) If we lo...