Skip to content

Welcome to the Eryx documentation

Eryx is simple and easy to use programming language based on python/javascript that was made to be easy to learn and use.

Dynamic Typing in Eryx

Eryx is a dynamically typed language. This means variables can change their type during runtime.

Useful urls

  • Homepage
  • GitHub Repository
  • Package Index
  • Online IDE
  • PyPI Package

Quick start

Install the latest version of Eryx with pip:

pip install eryx

Using Eryx

After installing Eryx, you can use it with the following command:

eryx

Available commands:
    repl                Start the REPL
    run                 Run an Eryx file
    server              Start the web IDE
    test                Run the test suite~
    transpile           Transpile Eryx code
    package             Manage Eryx packages

Head over to the CLI page for more details on how to use each command.

Writing your first program

Before writing your first program, you should head over to the language features page to understand how to use the language and what it is capable of. You should also check out the examples page as it provides a wide range of examples that cover all the features of the language.

Here is a simple factorial implementation in Eryx:

factorial.eryx
1
2
3
4
5
6
7
8
9
# This is a comment!
func factorial(n) {
    if (n <= 1) {
        return 1;
    }
    return n * factorial(n - 1);
}

print(factorial(5));
Output
120