.WAT 文件扩展名
WebAssembly Text File
| 开发者 | W3C |
| 受欢迎程度 |
4.0 | 3 票 |
什么是 WAT 文件?
A WAT file is a text file written in the WebAssembly Text Format (WAT), a human-readable representation of WebAssembly (WASM) in a syntax similar to the .LISP programming language and based on S-expressions. The WAT format allows developers to write, view, and debug WebAssembly code before compiling it into the binary WebAssembly (.WASM) format, which runs in environments that support WASM, typically in web browsers.
更多信息
After compiling WAT files to WASM with a WebAssembly compiler, developers typically deploy them to run in web browsers, such as Google Chrome, Mozilla Firefox, Microsoft Edge, and Apple Safari, for games, media editing tools, data simulations, and more. WASM files may also run on server-side platforms like Node.js.
注: The World Wide Web Consortium (W3C) WebAssembly Community Group develops WAT as part of the WebAssembly (WASM) project (beginning in 2015). The group includes major contributors from Mozilla, Google, Microsoft, and Apple and independent developers.
如何打开 WAT 文件
You can open WAT files with various source code editors, including Microsoft Visual Studio Code and Brackets.
Since WAT files are saved in plain text, you can also open and edit WAT files with a basic text editor, such as Microsoft Notepad or Apple TextEdit. However, text editors do not offer the same helpful editing features that source code editors provide.
如何转换 WAT 文件
You can compile WAT files to WASM files with various WebAssembly compilers, including the wat2wasm command-line tool available with WABT (The WebAssembly Binary Toolkit).
