manuel / wat-js

Concurrency and Metaprogramming for JS
MIT License
259 stars 8 forks source link

Wat

Concurrency and Metaprogramming for JS

Wat is a tiny language with powerful concurrency and metaprogramming features for embedding in JavaScript programs.

Wat is developed by Manuel Simoni (msimoni@gmail.com).

Usage

Browser

<html>
<head>
  <script type="text/javascript" src="https://github.com/manuel/wat-js/raw/master/build/wat.js"></script>
</head>
<body>
  <script type="text/javascript">
    var vm = wat.vm();
    console.log(vm.eval("(+ 1 2)"));
  </script>
</body>
</html>

Node.js

> var vm = require("./build/wat").vm();
> vm.eval("(+ 1 2)");
3

More documentation upcoming!

For now, follow http://axisofeval.blogspot.com/search/label/wat and/or https://twitter.com/msimoni for updates.