Skip to main content

No project description provided

Project description

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

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 SOWHAT
	SHOUT("WHO CARES?")
YUMYUM

Author(s)

License

MIT

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

sydneyscript-0.6.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file sydneyscript-0.6.1.tar.gz.

File metadata

  • Download URL: sydneyscript-0.6.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for sydneyscript-0.6.1.tar.gz
Algorithm Hash digest
SHA256 8da930badf182f3162a0c771983494c971a02e38620cffb0ef4cd92c973d7804
MD5 73313c268044ca5924e0282acb36df15
BLAKE2b-256 b6611ba587da46c62dbdf7c6d2f1ad835cfd695425f03271959ac40d511f8396

See more details on using hashes here.

Supported by

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