Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
/ strema-mirror Public archive

A compiler for a type inferred, functional language with adts, records and pattern matching, targeting JavaScript. This repo is a mirror.

License

Notifications You must be signed in to change notification settings

soupi/strema-mirror

Repository files navigation

strema

Note: See Giml for further development instead

Build status

A compiler targeting javascript for a custom type inferred programming language with first class functions, ADTs and pattern matching.

Status: WIP toy proglang

Strema logo

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.

Build and run

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

About

A compiler for a type inferred, functional language with adts, records and pattern matching, targeting JavaScript. This repo is a mirror.

Topics

Resources

License

Stars

Watchers

Forks