Skip to content

MoonBarc/fig

Repository files navigation

The Fig Programming Language

⚠️ Work in Progress! ⚠️

Fig is a compiled, statically-typed, garbage collected and expressive programming language targeting the arm64 architecture.

A Taste of Fig

This is the current state of the language:

// for now, the top level of the file is the main function

let a = 5;

// loop & if are *expressions*!
let thing = if a == 5 {
    <- a * 5;
} else {
    <- 200;
};

let n = 5;
let i = 0;
let other_thing = loop {
    if i == n {
        break n * i;
    }
    i = i + 1;
};

return thing + other_thing;

The finished language will look something like design.fig.

Future Work

  • More Data Types
  • Functions
  • Core Library
  • Garbage Collection
  • Remove semicolons
  • x86-64

About

The Fig Programming Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages