![](https://raw.githubusercontent.com/angelcaru/radon/master/logo.png)
A general-purpose programming language, focused on simplicity, safety and stability.
Website • Documentation • Tests • Examples
Radon is a programming language that is designed to be easy to learn and use. It is a high-level language intended to be used for general purpose programming. It is designed to be easy to learn and use, while still being powerful enough to be used for most tasks. Some of the features of Radon include:
- A simple syntax that is easy to learn and use
- Dynamic typing so that you don't have to worry about types
- Powerful standard library that makes it easy to do common tasks (Development)
- Easy to use package manager that makes it easy to install packages (Future feature)
Radon is currently in development state. It is not ready for use yet. But you can still try it out by cloning the repository and running the radon-project/radon
repository.
git clone https://github.com/radon-project/radon.git
cd radon
# To run the repl
python radon.py
# To run a .rn file use the -s flag and pass the filename
python radon.py -s <filename>
Read the documentation to learn more about the language.
Here is a simple example of a Radon program that asks the user for their username and password and then checks if the username is "radon" and the password is "password". If the username and password are correct, it prints "Log in successful", otherwise it prints "Invalid credentials".
import io
class Network {
fun __constructor__(username, password) {
this.username = username
this.password = password
}
fun login() {
if this.username == "radon" {
if this.password == "password" {
print("Log in successful")
} else {
print("Invalid credentials")
}
} else {
print("Invalid credentials")
}
}
}
var username = input("Enter you username: ")
# Access password securely using get_password
var password = io.Input.get_password("Enter your password: ")
var network = Network(username, password)
network.login()
We need contributors to help us build the language. If you are interested, please make contributions to the radon-project/radon
repository.
Steps to contribute:
- Fork the repository
- Clone the repository
- Create a new branch
- Make changes
- Commit changes
- Push to the branch
- Create a pull request
Before making a pull request create an issue and discuss the changes you want to make. If you have any questions, feel free to ask in the issues section.
You can also join our Discord server to discuss the language and get help.
We are using GNU General Public License v3.0. You can check the license here.