SydneyScript - A programming language
A toy programming language made from scratch with python based on my friend's most used words as keywords as a gift. TOTALLY NOT FOR @sydeich
FAQ
Why?
Sometimes you need to give ppl something that they deserve, right?
Will it get updated?
Absolutely not.
Can I contribute?
YESSS
Installation
Install SydneyScript with pip:
> pip install sydneyscript
done!
Running an app:
> sydneyscript FILENAME.syd
SydneyScript shell:
> sydneyscript
Hello world
Lets code a different hello world application!
# hello_world.syd
FUNKY uwuify(prefix) -> prefix + " UWU"
FUNKY mass_uwu_print(text, times)
PARADOX i = 0 TO times SOWHAT
SHOUT(uwuify(text))
YUMYUM
YUMYUM
mass_uwu_print("Hello world", 10)
# OUTPUT: "Hello world UWU" * 10
Features
- Variables
- AND / OR
- IF / ELSE IF / ELSE
- FOR / WHILE
- FUNCTIONS
Syntax
| Tradtional keyword | SydneyScript keyword |
|---|---|
| const | BOWL |
| and | AND |
| or | OAR |
| not | FLIP |
| if | DEBATE |
| else if | TOLDYOU |
| else | LASTCHANCE |
| for | PARADOX |
| step | STEP |
| while | SINCE |
| function/def | FUNKY |
| then | SOWHAT |
| end | YUMYUM |
| return | YEET |
| continue | EVERYTHINGISGONNABEFINE |
| break | DOOMED |
BuiltIn functions and variables
| Name | Meaning |
|---|---|
| VOID | null |
| HELLYEA | false |
| HELLNO | true |
| NERD_NUMBER | PI number |
| SHOUT | |
| NO_INPUT | asking for input |
| NO_INT | asking for a number |
| GETRIDOFEVERYTHING | clear the console |
| GROE | clear the console |
| IS_NUMBER | check if the input is a number |
| IS_STRING | check if the input is a string |
| IS_BAG | check if the input is a list |
| IS_FUNKY | check if the input is a function |
| PUSH | Add something to a list |
| POP | Remove the last element from list |
| STRETCH | Adding to lists together |
| HOWLONG | getting the length of list |
| UWU | running a *.syd script |
Variables
BOWL cool_variable = "I'm a cool string variable!"
For Loops
PARADOX i = 0 TO 10 SOWHAT
SHOUT(i)
YUMYUM
Functions
FUNKY say_hello(name)
YEET "Hello " + name
YUMYUM
# OR
FUNKY say_hello(name) -> "Hello " + name
If Statement
DEBATE (2+2 == 5) SOWHAT
SHOUT("2+2 is equal to 5")
TOLDYOU (2+2 == 4) SOWHAT
SHOUT("2+2 is equal to 4")
LASTCHANCE SHOUT("WHO CARES?")
Author(s)
License
Release files for sydneyscript 0.6.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sydneyscript-0.6.4.tar.gz | 15.3 kB | Details |
Release files / sydneyscript-0.6.4.tar.gz
| Download URL | sydneyscript-0.6.4.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa8eab9781ee184490db6127333f507504d000fa84f18b6a82135481f382ea54
|
|
BLAKE2b-256 checksum How to use checksums |
44c5559be822dfadfe60d4e685eee521b404af1409c8a27641ff55947065a368
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|