This page is available as PDF here.

Introduction to Epos

Epos is a functional, statically typed programming language that compiles to LLVM IR.

Key Features

Hello World

Your first Epos program:

fn hello()
    print("Hello World!")
end
hello()

Comments

Epos supports single-line and nestable multi-line comments:

# This is a single-line comment

(#
  This is a multi-line comment
  (#
    And they can be nested!
  #)
#)

Basic Syntax Rules

Getting Started

To create, compile and run an Epos program:

nix github:epos-lang/epos -- init hello-world
cd hello-world
epos -r hello-world/main.epos

Next, learn about variables and types in Epos.

Next page →