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"> </div> ASPL is a modern programming language featuring beautiful simplicity, seamless cross-platform support, practical OOP and so much more.Why ASPL?
-
<b>Simple 😀</b> <br>The syntax is clean and readable, error messages provide useful information, and installing ASPL is as easy as a few clicks.
-
<b>Safe 🔒</b> <br>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.
-
<b>Cross platform 💻</b> <br>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.
-
<b>Huge standard library 🔥</b> <br>Built-in JSON, graphics, and advanced networking support are just a few of the things that will drastically speed up your coding process.
-
<b>Modular architecture 📚</b> <br>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 <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
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
<h3>👋 Feel free to join <a href="https://discord.gg/UUNzAFrKU2">the official ASPL discord server</a>.</h3>[!NOTE]
More examples can be found <a href="./examples/">here</a> or in the <a href="introduction.md">ASPL introduction</a>.