Skip to content
aspl-langPublic

About

ASPL is a modern, general-purpose programming language with a focus on simplicity, portability, and safety

Topics

Resources

Contributing

Stars

32 stars

Watchers

0 watching

Forks

Repository files navigation

The ASPL logo

The ASPL Programming Language

CI/CD Suite Commit Activity Discord X

ASPL is a high-level, general-purpose programming language for building modern, safe, and portable software.

Why ASPL?

  • Simple 💡
    The syntax is clean and readable, the compiler is easy to use and provides meaningful insights, and installing the whole ASPL toolchain is as straightforward as a few clicks.

  • Safe 🔒
    High-level abstractions, automatic memory management, a strong type system, and out-of-the-box TLS support make ASPL safe by design.

  • Cross-platform 🌐
    Newcomers and experienced programmers alike can easily create powerful cross-platform applications with ASPL; seamless cross-compilation is one of ASPL's core design principles.

  • Powerful standard library 🔥
    Built-in JSON, graphics, and advanced networking support are just a few of the things that will drastically speed up your coding process.

  • Modular architecture 📚
    ASPL has a great and simple modular library system that helps you reuse any kind of third-party code in your projects, including even the ASPL compiler itself.

Important

ASPL is still in beta. The language and its tooling are already fairly practical and stabilizing, but more breaking changes are to come. Parts of the standard library currently have known security vulnerabilities. ASPL is not yet recommended for production use. There will be more detailed documentation on the current state of ASPL regarding stability and safety soon. Contributions to this project are always welcome.

Installing

Please have a look at the installation guide.

Introduction

Make sure to check out the official introduction to ASPL.
It also documents most of the language and contains a lot of examples.

Bugs and Suggestions

ASPL is currently in early development and still has some bugs and missing features.
Please report bugs or suggest features by opening an issue or posting them in the ASPL Discord server.

Code Examples

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

Hello World

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

Output:
-> 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:
-> What's your favorite food?
<- Spaghetti
-> 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:
-> 42

Note

More examples can be found here or in the ASPL introduction.

Star History

Star History Chart

👋 Feel free to join the official ASPL Discord server.

About

ASPL is a modern, general-purpose programming language with a focus on simplicity, portability, and safety

Topics

Resources

Contributing

Stars

32 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages