Skip to main content

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

PythOyO on PyPi

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythOyO-0.1.1.tar.gz (121.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythOyO-0.1.1-py3-none-any.whl (120.8 kB view details)

Uploaded Python 3

File details

Details for the file pythOyO-0.1.1.tar.gz.

File metadata

  • Download URL: pythOyO-0.1.1.tar.gz
  • Upload date:
  • Size: 121.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pythOyO-0.1.1.tar.gz
Algorithm Hash digest
SHA256 914b237ccc5c9822ec0bcbe56c76405d0347dbe6cafc231cb73dd22f349bbf0d
MD5 1e1c62ab0d1b88bd166167efadea66c0
BLAKE2b-256 acb98d25e8ae133df9f42afdc0078d4e68c17527aba3afd30c1721330d3756e2

See more details on using hashes here.

File details

Details for the file pythOyO-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pythOyO-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 120.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pythOyO-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d26f75ac36d52f4887231c49504e65d7c5f827d2c8550974988723beeabdefd8
MD5 78ac7a6af74f51c859808db9cda52cc4
BLAKE2b-256 4d921f8c8581a64bf7943981d574578fb565806d4ab7195ed0203f800d5bc899

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page