| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Portable compiler sources that compile to both JavaScript using tsc and WebAssembly using asc.
import assemblyscript from "assemblyscript";
...To build the compiler, run:
npm run buildThe rebuild automatically when there are changes, do:
npm run watchTo build the compiler to a WebAssembly binary, run:
npm run bootstrapUses the AssemblyScript compiler compiled to JavaScript to compile itself to WebAssembly, building to WebAssembly again using itself compiled to WebAssembly. Builds to build/. Performs a git diff to make sure that both the initial and the final artifacts are the same. Note that this builds the compiler as a library, while the asc frontend setting it up and feeding it source files is JavaScript for now.
Running asc with the WebAssembly variant:
asc [options...] --wasm build/assemblyscript.release-bootstrap.jsRunning the compiler tests with the WebAssembly variant:
npm run test:compiler -- --wasm build/assemblyscript.release-bootstrap.js| Back | FazBrowse Home | New Git URL |