Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmcw/wah
a slightly higher-level language superset of webassembly
https://github.com/tmcw/wah
clojure compiler webassembly
Last synced: 10 days ago
JSON representation
a slightly higher-level language superset of webassembly
- Host: GitHub
- URL: https://github.com/tmcw/wah
- Owner: tmcw
- License: epl-1.0
- Created: 2017-05-12T01:29:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-28T06:34:53.000Z (over 5 years ago)
- Last Synced: 2024-10-12T04:16:49.296Z (25 days ago)
- Topics: clojure, compiler, webassembly
- Language: Clojure
- Homepage:
- Size: 40 KB
- Stars: 158
- Watchers: 9
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# wah
[![CircleCI](https://circleci.com/gh/tmcw/wah.svg?style=shield)](https://circleci.com/gh/tmcw/wah) [![Clojars Project](https://img.shields.io/clojars/v/wah.svg)](https://clojars.org/wah)
Shortcuts for wasm
| wah | wasm |
|---------------|-------------------------------------------|
| `(0 = 1)` | `(set_local 0 (i32.const 1))` |
| `(%$a + %$b)` | `(f64.add (get_local $a) (get_local $b))` |
| `(0 + 1)` | `(i32.add (i32.const 0) (i32.const 1))` |
| `(0.0 + 1.0)` | `(f64.add (f64.const 0) (f64.const 1))` |* Adds infix operators: `*, +, -, /, ==, >, <, >=, <=`
* Supports (0 = 1) shortcut for `set_local`
* Supports bare numbers that become f64.const if they have a decimal point, and
i32.const if they don't.
* Supports type inference by walking up the tree, paying attention to param
and local types.## [Introduction](doc/intro.md)
## [Flow](doc/flow.txt)
## [Rationale](doc/rationale.md)
## [Planning](doc/planning.md)
## Contributing & open source
This is a PR-only repository: there's no issue tracker.
* To report a bug, open a PR with a failing testcase
* To propose a feature, open a PR with a failing testcase or an initial implementationI'll be overjoyed to review & merge PRs!
## License
Copyright © 2017 Tom MacWright
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.