GitHunt
YE

yelouafi/create-a-simple-functional-language

Companion code for https://bit.ly/2WCoR0f

cerate-a-simple-functional-language

Companion code for https://bit.ly/2WCoR0f

Running

The easiest way is to use parcel

parcel index.html

Then you can use _eval in the developper console. Example

_eval("let inc = fn(x: int) => x + 1 in inc(100)");

More features

I'll be adding occasionnally examples for supporting more features. The
examples will be in separate branches.

  • boolean types && if construct, also has more operations && priority/associativity (example)

  • record types (example)

  • type inference (using Algorithm W) (example)

  • subtyping (example)

Languages

TypeScript98.1%HTML1.9%

Contributors

MIT License
Created May 7, 2020
Updated July 28, 2025
yelouafi/create-a-simple-functional-language | GitHunt