Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.11 KB

README.md

File metadata and controls

43 lines (36 loc) · 1.11 KB

KirboSmash

A very simplified programming language written in python. Now supports Shell and Scripting both!! POYO!! (Interpreter based model) This list has to be updated, there's extra stuff i need to write.

How to Run Interpreter

Open any code editor or python IDE and then run shell.py

Syntax

The Syntax is based on kirby noises but mixed with english.

Comparison Operators

not equal to : != equals to : ==
less than : <
greater than : >
greater than or equal to : >=
less than or equal to : <=
and : andpo
or : orpo
not : nopo

Variable Declaration

letyo <var_name> = <value>

A variable can be declared while performing an operation too, for exmaple:

poyo> 5 + letyo a = 6
11
poyo> a
6

If - Else statments

keywords: ifyo, thenpo, elseyo
ifyo <condition> thenpo <process> elseyo <process>

--For Else if statements:

keyword: butpoyo <condition>
ifyo <condition> thenpo <process> butpoyo <condition> thenpo <process> elseyo <process>