Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wah

CircleCI Clojars Project

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.

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 implementation

I'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.

About

a slightly higher-level language superset of webassembly

Topics

Resources

Stars

159 stars

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages