/ZScript

My language, ZScript

Primary LanguagePython

ZScript Documenation


This is the ZScript IDE made with Python! Thanks for @darkshadowshad for helping me!

Run on Repl.it


  1. Line
line('Hello World!')

The line function will print your string or number

  1. Make
make e = "E MEME"
line(e)

So make will make a variable

  1. If, else, elif statment
make e = "ZDev28"
if e == "ZDev28":
    line('this word is good')
else:
    line('I don\'t like this word')
  1. Define
define function():
    make e = "hey"
    line(e)

function()

It will make a function

  1. Classes
class MyClass:
    define __init__(self):
        self.name = input('What is your name?\n> )
    define greet(self):
        line(self.name)

make myclass = MyClass()
myclass.greet();
  1. While
while True:
    line('E')

An endless loop

  1. Download
downlaod time
time.sleep(3.0)

It will download a library

  1. For
download random
make randomthing = random.choice(['hey', 'hello', 'hola'])
for i in range(3):
    line(randomthing)

A loop

  1. $
$ A comment

A comment

  1. Take_input
make name = take_input('What is your name\n> ')
line(f'Hi, {name}!')

An input