forked from GitHub/haskell-wasm
4775c4220776ee9dc152bd1d8368efc18d14fc40
Haskell WebAssembly Toolkit
Goals
- Provide a WebAssembly code generation tool for Haskell
- Create an infrastructure for Cmm to WebAssembly code generator
- Have Fun :)
Status
- Lexer: supports nested block comments and all lexemes from the WebAssembly Spec
- Parser: parses all examples from WebAssembly Core TestsSuit (including folded instructions parsing)
- Renaming Phase: substitute identifiers with correct indexes, expand all implicit type declarations)
- Binary format parser/serializer
- Validation Phase: execute a verification procedure from the Spec
Todo
- Improve error messages for text representation parsing
- Text Representation pretty-printer
- Execution Phase: implement a simple interpreter for running WebAssembly Core TestsSuit assertions
Languages
Haskell
65.3%
Yacc
28.9%
Lex
5.5%
Nix
0.2%
HTML
0.1%