Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sdiehl/wasm

Haskell compiler infastructure for WebAssembly
https://github.com/sdiehl/wasm

assembler haskell webassembly

Last synced: 2 months ago
JSON representation

Haskell compiler infastructure for WebAssembly

Awesome Lists containing this project

README

        



Haskell WebAssembly
-------------------

[![Build Status](https://travis-ci.org/haskell-wasm/wasm.svg?branch=master)](https://travis-ci.org/haskell-wasm/wasm)

A WebAssembly AST, parser, and assembler in Haskell for use in functional compiler backends
targeting WebAssembly.

Warning, still a *big* work in progress.

Codebase
--------

Core modules

* [Entry](https://github.com/sdiehl/wasm/blob/master/src/Language/Wasm/Entry.hs) - Driver
* [Syntax](https://github.com/sdiehl/wasm/blob/master/src/Language/Wasm/Syntax.hs) - Frontend AST
* [Parser](https://github.com/sdiehl/wasm/blob/master/src/Language/Wasm/Parser.y) - Parser
* [Lexer](https://github.com/sdiehl/wasm/blob/master/src/Language/Wasm/Lexer.x) - Lexer
* [Pretty](https://github.com/sdiehl/wasm/blob/master/src/Language/Wasm/Pretty.hs) - Textual Format
* [Binary](https://github.com/sdiehl/wasm/blob/master/src/Language/Wasm/Binary.hs) - Binary Format
* [Test](https://github.com/sdiehl/wasm/blob/master/src/Test.hs) - Test suite

Usage
-----

```haskell
import Language.Wasm.Syntax
import Language.Wasm.Binary
import Language.Wasm.Parser
```