Skip to content

Latest commit

 

History

History
executable file
·
24 lines (19 loc) · 656 Bytes

README.md

File metadata and controls

executable file
·
24 lines (19 loc) · 656 Bytes

Example: Conway's Game of Life

Uses: @esmbly/transformer-jsdoc, @esmbly-transformer-wasm, memory

Summary

This example shows how the Conway's Game of Life (ported from the AssemblyScript project to JSDoc) can be transformed to WebAssembly by chaining @esmbly/transformer-jsdoc and @esmbly/transformer-wasm.

# Input (JavaScript with JSDoc comments)
src/index.js
src/config.js

# Output (TypeScript, AssemblyScript, WebAssembly)
dist/index.ts
dist/index.as.ts
dist/config.ts
dist/config.as.ts
dist/out.wasm

Transforming the example

yarn run esmbly run