Skip to content

aspl-lang/aspl

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 early development. Even though the language is already quite stable and very practical, it is not yet recommended for production use. Contributions 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

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages