Coder Social home page Coder Social logo

wah's Introduction

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.

wah's People

Contributors

tmcw avatar jotes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.