A fun and whimsical UyU programming language written in python
Project description
pythOyO
pythOyO is an uyu programming language written in Python. UyU.
Get PythOyO LangUyUage support for VSCode
pip install PythOyO
Uyusage
Cruyueate a nuyu file - test.pyoyo
pyint("Heyyo Woyrld")
Ruyun
Either run from the interpreter directly:
python/python3 pythoyo.py test.pyoyo
Or run in an interactive shell:
python shÿell.py
(。・ÿ・。)ノ★ > ryun("test.pyoyo")
Ouyutpuyut
Heyyo Woyrld
Docuyumentation
General
python shÿell.py opens the pythOyO shell. Running ryun("test.pyoyo") from the shell execuyutes code from the file test.pyoyo.
Variables
Variables can be decluyuared using the keyword pyease.
pyease baka = 100
pyease tehe = "tyo"
pyease chan = 25
pyease baka = baka + 1
pyease tehe = 500
pyease chan = chan * 2
pyint(tehe)
pyint(baka)
pyint(chan)
Ouyutpuyut
500
101
50
Conditionals
IF《condition》THYEN《expression》EYIF《condition》THYEN《expression》
pyease tehe = 501
IF tehe == 502 THYEN pyease chan = "tehe is 502!" EYIF tehe == 501 THYEN pyease chan = "
is 501!" EYSE pyease chan = "tehe is 500!"
pyint(chan)
Ouyutpuyut
tehe is 501!
Loops
FOR i = 0 TO 5 THYEN
pyint("UyU")
END
Ouyutpuyut
UyU
UyU
UyU
UyU
UyU
Functions
FYUNCTION oyofy(pyefix) -> pyefix + "OyO"
pyint(oyofy("This is pyth"))
Ouyutpuyut
This is pythOyO
Clear
You can clear the shell with the cyear command
(。・ÿ・。)ノ★ > cyear
Contribuyuting
All contribuyutions are welcome, just make a puyull request!
Testing
Unit tests are available through the unittest module. New test files must start with `test*.py` to be detected.
python -m unittest
Pythoyo logo credit
Thank youyu @Haddle for making VSCode language support for PythOyO
Thank youyu @Tulip-0333 for helping with putting PythOyO up on PyPi
uyu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythOyO-0.1.0.tar.gz.
File metadata
- Download URL: pythOyO-0.1.0.tar.gz
- Upload date:
- Size: 120.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1aca9d132b3a3bd70e36a6ccc495508d161909b24eb9a75835ca9576ea2e79f
|
|
| MD5 |
68c6a42a75af5929a0daecbebd9eb47a
|
|
| BLAKE2b-256 |
b651a5106dbcf0a56b80b9740d91e15bf2425c05fa17156ce77bbec1c576c4fa
|
File details
Details for the file pythOyO-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pythOyO-0.1.0-py3-none-any.whl
- Upload date:
- Size: 119.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16089fa55a4542f03cc25c24a5f6ad1d1a0feb3b5b13ae8e046e61c084549ab1
|
|
| MD5 |
fae2592eb6092b37a8af1bd2b2ec5afd
|
|
| BLAKE2b-256 |
a06de241fd89c15bad462f9d0c580a271e1cae41ac314d0cdebdf13715277404
|