Skip to content

fig-lang/fig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Fig Programming Language

Fig-lang source code, containing the compiler, CLI, web, and examples

Stage

Fig-lang is currently in the early stages of development. You can test the Early development version on Playground.

Installation

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

Hello World in Fig

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.

Learn Fig

Fig has a book for learning the syntax and basic principles of fig.