https://github.com/pust-lang/pust
Year is a rust-inspired programming language, the language is still in development but will be a simple and useful language
https://github.com/pust-lang/pust
language low-level low-level-programming python rust software software-tools year
Last synced: 7 months ago
JSON representation
Year is a rust-inspired programming language, the language is still in development but will be a simple and useful language
- Host: GitHub
- URL: https://github.com/pust-lang/pust
- Owner: PiStud-Lang
- License: other
- Created: 2025-01-22T12:58:10.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-30T12:52:12.000Z (8 months ago)
- Last Synced: 2025-01-30T13:37:01.511Z (8 months ago)
- Topics: language, low-level, low-level-programming, python, rust, software, software-tools, year
- Language: Python
- Homepage: https://year-lang.github.io/web/
- Size: 192 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY
Awesome Lists containing this project
README

[Website](https://pust-lang.github.io/web/)
Pust – A Rust-inspired programming language
This program is in alpha. The full code is still under development.
## What is Pust?
Pust is a new low-level programming language inspired by Rust.
Our goal is to offer powerful, safe, and concurrent programming capabilities with an easier learning curve.
Think **Rust**, but with **Pust** simplicity and elegance!---
## Features (Work in Progress)
- **Easy to use**: Pust is easy to use, like, pln, iln, fn, wo, if_stmt and cv!
- **Usefull**: Pust is written it so that its easy to code for bigginers, it might also be usefull
- **Software**: Building software is slowly being implemented, and you can create windows and message boxes---
## How to program
- **Mainspace**: Mainspace is where you can code without using the ps. , like this: p.fn("main", ['pln("my coding space")']), functions cannot be created in mainspace, but mainspace can run functions
- **Print**: To print in Pust in use pln("") or ps.pln("") if it isnt in mainspace
- **Input**: If you want user input, use iln("") or add the ps. if not in mainspace, and this is how to give an input a variable to add in an if statement or print: cv("variable", "put anything you want, it wont be used") = iln("Hello: "), and it'll take the user input and save it into the variable
- **if_stmt**: to use an if statement, use ```ps.if_stmt("variable", "value", ['pln("Hello!")'], ['pln("Bye!")'])```, this part "variable", "value", you could say if variable is value then pln("Hello!") else pln("Bye!"), else is optinal. ```ps.if_stmt(if > "variable", is > "value", then > ['pln("Hello!")'], else > ['pln("Bye!")'])```.
- **Button**: To create a button use ```cb("parent", "130,150 position", "150,30 size", "name")```, at you've created a button! under here you'll see how to run something with a button
- **Button Click**: to register a click on a button, use ```bc("button name", ["fn(FuncName)"])```, it can only run functions, so use p.fn.
- **Functions**: Currently sometimes functions does not work in Mainspace, so you have to use with p. : ```ps.fn("MyFunc", """code""")```, functions cannot be created in mainspace, but mainspace can run functions
- **Variables**: Variables, to create a variable, use cv("VariableName", "Value"), to print or Input a variable, use pln("VariableName") and input, if its outside of Mainspace use variable = ps.iln("Type Hello: ") like in basic python.
- **Message Box**: Message boxes, like those info, warning and error messages, well now you can program them to show up! simply use ```ps.ms("type", "title", "text/message")```, type options: info, warning and error . This is one of the first things of software, or the beginning.
- **Window**: To create a window, use ```cv("mywindow", cw("Name", "400x300"))```, and to make the window show up, use ```wl("mywindow")```.
- **Copy Paste**: mainspace ``` ps.fn("main", [' code here ']) ```, print ``` ps.pln('Hello World!') ```, input ``` ps.iln('Type somthing: ') ```, variables ``` ps.cv('VName', 'Vvalue') ```, if statement ```ps.if_stmt("variable", "value", ['pln("Hello!")'], ['pln("Bye!")'])```, web open ```ps.wo('url')```, message box ```ps.ms("type", "title", "text/message")```, functions ```ps.fn("MyFunc", """code""")```.
## Getting Started
Download [python](https://python.org) before downloading!
Clone with git:Clone the repository:
clone repo:```bash
git clone https://github.com/Pust-Lang/Pust
```
Clone ide (Recommended):
```bash
git clone https://github.com/Pust-Lang/pustIDE.git
```
3. Run the files
Run and open the file named 'main.py', you'll be seeing "ps.fn("main", """"""). In between the """""" is where you code, you may also not use Mainspace, but you need to add ps. , like this: ps.pln("Hello World!")
To learn Pust, go in our website and click on "cource" (still in development!)
**Supports**: Linux, Windows, Mac.