Hasty Briefsbeta

Building a WASM compiler in Roc (series)

9 days ago
  • #Compiler
  • #Roc
  • #WASM
  • Series on building a WASM compiler in Roc
  • Part 1 - Project Introduction (Roc and Wasm)
  • Part 2 - Arguments and IO in Roc
  • Part 3 - Tokenizer boilerplate
  • Part 4 - Errors and positions in tokenizer
  • Part 5 - Testing and tokenizing
  • Part 6 - Introduction to Parsing
  • Part 7 - Refactoring with confidence (more parsing)
  • Part 8 - Introduction to Transforming
  • Part 9 - Transforming Memory and Export nodes
  • Part 10 - Transforming Data and Import nodes
  • Part 11 - Transforming Function nodes
  • Part 12 - Introduction to Code Generation
  • Part 13 - Generating Data and Type sections
  • Part 14 - Generating Import section
  • Part 15 - Generating Function and code sections
  • Part 16 - Generating Exports (and project conclusion)
  • Source Code available on GitHub