Skip to content

Latest commit

 

History

History
91 lines (72 loc) · 2.96 KB

INSTALLATION.md

File metadata and controls

91 lines (72 loc) · 2.96 KB

How To Install

Updated: Jan 28, 2025

CLI

First you need CLI to orchestrate the compiler.

For Unix:

curl -fsSL sh.thelang.io | bash

In case you are curious what it does, you can check here: https://github.com/thelang-io/cli/blob/main/install.sh

For Windows:

irm ps1.thelang.io | iex

In case you are curious what it does, you can check here: https://github.com/thelang-io/cli/blob/main/install.ps1

Test CLI Installation

the -v

If that doesn't work you probably need to re-login into your terminal.

Before Downloading Compiler

Before, everything was compiled on cloud servers. After Oct 2024, I disabled cloud servers (I paid $600 for the last year and nobody used it). If you think I should enabled it back, let me know. But for now you will need an offline compiler.

Before you will get a compiler you will need to have CMake installed: https://cmake.org/download/

Next thing you need to run this command:

the offline

This should be it!

Test Installation

Create a file, eg "main":

main {
  print("Hello, World")
}

And run it like this:

the run main

Important

Under the hood CLI will recognize that you have offline compiler installed and will use it.

Further Reading

Remember, this is old version that is built using C++. This version is slow, and I'm aware of that. The new version, where it's much faster and self-compiles, is still in development. Expected to be released somewhere in 2025.

  1. Comments
  2. Operations
  3. Types
  4. Mutability
  5. Control Flow
  6. Iteration
  7. Types: Arrays / Enumerations / Objects / Maps / Unions / Functions / Optionals / References / Any
  8. Anonymous Functions (Closures)
  9. Variadic Parameters
  10. Type Aliasing
  11. Type Checking
  12. Type Casting
  13. Error Handling
  14. Asynchronous Programming
  15. Modules