An open API service indexing awesome lists of open source software.

https://github.com/aspl-lang/aspl

✔️ ASPL is a modern, general-purpose programming language with a focus on simplicity, portability, and safety.
https://github.com/aspl-lang/aspl

aspl bytecode compiler cross-platform hacktoberfest interpreter language programming-language

Last synced: 14 days ago
JSON representation

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

Awesome Lists containing this project

README

          


The ASPL logo

The ASPL Programming Language



[![CI/CD Test Suite](https://github.com/aspl-lang/aspl/actions/workflows/ci_cd.yml/badge.svg)](https://github.com/aspl-lang/aspl/actions/workflows/ci_cd.yml)
![Commit activity](https://img.shields.io/github/commit-activity/m/aspl-lang/aspl)
[![Discord](https://img.shields.io/discord/1053681798430859264?label=Discord&logo=discord&logoColor=white)](https://discord.gg/UUNzAFrKU2)
[![X](https://img.shields.io/badge/follow-%40aspl__lang-1DA1F2?logo=x&style=flat&logoColor=white)](https://x.com/aspl_lang)


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

## Why ASPL?
* Simple 😀

The syntax is clean and readable, error messages provide useful information, and installing ASPL is as easy as a few clicks.

* Safe 🔒

High-level abstractions, automatic memory management, out-of-the-box TLS support, and a strong type system make ASPL one of the safest languages out there.

* Cross platform 💻

Newcomers as well as experienced programmers can easily create powerful cross-platform applications with ASPL; seamless cross-compilation is one of ASPL's core design principles.

* Huge 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 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 the installation guide.

# Introduction
An introduction into ASPL can be found here.

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.

Please report bugs or suggest features by opening an issue or posting them in the ASPL discord server.

# Star History
[![Star History Chart](https://api.star-history.com/svg?repos=aspl-lang/aspl&type=Date)](https://star-history.com/#aspl-lang/aspl)

# Code Examples
-> means the program prints text to the console

<- means the user types something into the console
## Hello World
```aspl
print("Hello World!") // print means "write into the console"
```
**Output:**

-> Hello World!

## Favorite food
```aspl
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
```aspl
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.**

👋 Feel free to join the official ASPL discord server.