Welcome to the Barn Programming Language Documentation 🔮
Introduction
Welcome to the official documentation for Barn, a modern and versatile programming language designed for simplicity and efficiency. Whether you're a seasoned developer or just starting your coding journey, this documentation serves as your comprehensive guide to understanding and harnessing the power of Barn.

Table of Contents
Getting Started
Installation Guide
Before you can dive into the world of Barn, you need to install the Barn compiler and set up your development environment. The installation guide provides step-by-step instructions for various platforms, ensuring a smooth start to your Barn programming journey.

If you're using a Linux, MacOS or other Unix-Like operating system you can easily build Barn using commands below. Make sure that GCC (or any other C compiler) and Makefile is installed on your machine.

git clone https://github.com/barn-lang/barn && cd barn
make CC=gcc # Set the compiler you will use
make install
barn --version


If you are using Windows

idk i don't have windows so i can't test it rn lol (this is just for now)


Hello, World! in Barn
Let's kick things off with a simple "Hello, World!" program in Barn. This introductory example will familiarize you with the basic syntax and structure of a Barn program, setting the stage for more complex projects.

@import "std.ba"

fun main() -> i32 {
println("Hello, World!")
return 0
}