Fig-lang source code, containing the compiler, CLI, web, and examples
Fig-lang is currently in the early stages of development. You can test the Early development version on Playground.
Here's a bash command to download the latest FigLang release and install it on your Linux or MacOS machine.
curl https://raw.githubusercontent.com/fig-lang/fig/main/install.sh | bash
This installation script currently doesn't support zsh
import std;
export fn main() {
print_str("Hello World");
}
To run this simple fig program run fig run ./{file name}
The output should be Hello World
.
Also, you can test out fig files in examples
folder.
Fig has a book for learning the syntax and basic principles of fig.