16 Commits

Author SHA1 Message Date
dcode
f3aa762ccb Rebuild examples 2019-03-01 00:09:06 +01:00
Daniel Wirtz
0c64f21250
Rework resolver (#489)
* Rework IR and resolver to use nested lookup tables
* Integrate types into IR
* Make components prefer IR, slimmed down AST
* Implement `export *`
* Add `@lazy` annotation and remove `--noTreeShaking`
* Add `@start` annotation and remove magic `main`
* Related refactoring, cleanup and docs
2019-02-21 00:11:22 +01:00
dcode
20f4092eb2 Update Binaryen and other dependencies; Update dist files 2019-01-09 13:02:47 +01:00
Daniel Wirtz
2bdc2a72f1
Use stack IR when emitting text format (#312) 2018-11-08 08:04:24 +01:00
Daniel Wirtz
f7c734789e
Update Binaryen to latest; Various fixes 2018-10-11 08:49:08 +02:00
dcodeIO
26e46f6f86 Reintroduce builtin decorator so these can appear anywhere in stdlib again
Avoids wrapping an undocumented function within 'memory.size' for example.
2018-07-19 02:10:04 +02:00
dcodeIO
9c16363796 Initial external decorator for annotating explicit import names; Use file name as default module name in imports; Emit empty memory if there are no static segments; Update TLSF and examples accordingly 2018-06-28 01:44:32 +02:00
dcodeIO
27e61f8f67 Remove noMemory option; Omit 'start' if 'main' is present; Unwrap more unnecessary blocks 2018-06-27 19:03:39 +02:00
dcodeIO
e049e72171 Fix a few issues with TSD generation; Update Binaryen 2018-05-21 10:31:00 +02:00
dcodeIO
ab08269276 Clarify the use of RGBA vs ABGR in the game-of-life example 2018-04-25 22:39:51 +02:00
dcodeIO
2ff1bb745a Fix some diagnostic issues when skipping invalid statements, see #80; Make game-of-life example somewhat interactive; Update dist files 2018-04-22 23:13:02 +02:00
dcodeIO
bde13b12cf Some final tweaks to the examples
I promise
2018-04-20 18:56:51 +02:00
dcodeIO
b53b3e08ec Add some smoothing to mandelbrot example 2018-04-20 05:06:05 +02:00
dcodeIO
9cd3304e13 Make the game-of-life example a bit more interesting
This moves the entire image buffer to WASM that now also applies some fading.
2018-04-19 23:16:03 +02:00
dcodeIO
18ef7c1932 Also link to the source from the demos 2018-04-19 18:53:01 +02:00
dcodeIO
485c3fd9b2 Add mandelbrot example; Update game-of-life example 2018-04-19 17:32:23 +02:00