Home

Awesome

<div align="center"> <img src="https://github.com/aspl-lang/logo/blob/main/logo.svg" width=192 alt="The ASPL logo"> <h1>The ASPL Programming Language</h1> </div> <div align="center">

CI/CD Test Suite Commit activity Discord X

</div> ASPL is a modern programming language featuring beautiful simplicity, seamless cross-platform support, practical OOP and so much more.

Why ASPL?

[!IMPORTANT]
ASPL is still in early development and some features are missing or incomplete. Even though the language is already quite stable and very practical, it is not yet recommended for production use. Contributions are always welcome!

Installing

Have a look at <a href="install.md">the installation guide</a>.

Introduction

An introduction into ASPL can be found <a href="introduction.md">here</a>. <br>It also documents most of the language and has a lot of examples.

Bugs and Suggestions

ASPL is currently in early development and still has some bugs and missing features. <br>Please report bugs or suggest features by <a href="https://github.com/aspl-lang/aspl/issues/new">opening an issue</a> or posting them in <a href="https://discord.gg/UUNzAFrKU2">the ASPL discord server</a>.

Star History

Star History Chart

Code Examples

-> means the program prints text to the console <br><- means the user types something into the console

Hello World

print("Hello World!") // print means "write into the console"

Output: <br>-> Hello World!

Favorite food

var favoriteFood = input("What's your favorite food?") // prints "What's your favorite food" and waits until the user types something into the console
if(favoriteFood == "Spaghetti"){ // checks whether the users input matches a certain string, here: "Spaghetti"; if it doesn't, the code between the braces will be skipped
    print("Hm, yummy, that's my favorite food too!")
}else{ // the following code is executed only if the condition in the if statement evaluated to false, here: the input was not "Spaghetti"
    print("Sounds great!")
}

Example Output: <br>-> What's your favorite food? <br><- Spaghetti <br>-> Hm, yummy, that's my favorite food too!

Random number

import rand

print(rand.irange(1, 100)) // prints a random number between 1 and 100 to the console

Example Output: <br>-> 42

[!NOTE]
More examples can be found <a href="./examples/">here</a> or in the <a href="introduction.md">ASPL introduction</a>.

<h3>👋 Feel free to join <a href="https://discord.gg/UUNzAFrKU2">the official ASPL discord server</a>.</h3>