Note: See Giml for further development instead
A compiler targeting javascript for a custom type inferred programming language with first class functions, ADTs and pattern matching.
Status: WIP toy proglang
logos adapted from “Rad Pack – 80’s Theme” Wallpapers by Nate Wren (CC BY-NC 4.0)
This project is streamed on twitch.tv/suppipi. For more information visit the webpage.
With Stack
> stack run -- compile --input examples/factorial.strm --output /tmp/output.js
> node /tmp/output.js # use node to run the program
120
With Cabal+GHC:
> cabal v2-update
> cabal v2-build all
> cabal v2-run stremac -- compile --input examples/factorial.strm --output /tmp/output.js
> node /tmp/output.js
120