Skip to content
/ fu Public

A small functional language, implemented in C.

Notifications You must be signed in to change notification settings

madmann91/fu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fu build-and-test

Fu is a simple functional language, whose name is inspired by Dr. Fu Manchu in the Sax Rohmer book series of the same name.

This language and implementation has the following goals:

  • Being embeddable easily into C or C++ programs,
  • Being compilable to C or LLVM,
  • Having its own graph-based IR to produce high-quality executables,
  • Serve as learning material for people wanting to learn about advanced compiler design,
  • Progress in tandem with coding videos in which I talk about the compiler.

Building

To build Fu, just type the following commands:

meson setup builddir
cd builddir
meson compile

Planned Language Features

  • Type system with first-class modules and parametric polymorphism
  • Local type inference algorithm
  • Partial evaluation constructs for compile-time function evaluation

Documentation

The documentation can be found here.

About

A small functional language, implemented in C.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published