Skip to content

A very simplified programming language written in python

Notifications You must be signed in to change notification settings

ShinyACash/KirboSmash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KirboSmash

-A very simplified programming language written in python imitating voices of the famous nintendo character named Kirby!
-Now supports Shell and Scripting both!! POYO!! (Interpreter based model)
-I know; an interpreter inside an interpreter, might be slow and not too efficient but its something I made for fun!

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.

Keywords

letyo,
andpo,
orpo,
nopo,
ifyo,
butpoyo,
elseyo,
foryo,
po,
stepo,
whileyo,
power,
thenpo,
over,
getpo,
cmon,
die,
false,
true,
math_pi, (pi value)
say, BuiltInFunction print
say_ret, BuiltInFunction print_ret
tellme, BuiltInFunction for input
tellme_int, BuiltInFunction for input in integer
boom, BuiltInFunction for clear (terminal)
booms, BuiltInFunction for mass clear (terminal)
is_numpo, BuiltInFunction for checking if number
is_stringpo, BuiltInFunction for checking if string
is_listpo, BuiltInFunction for checking if list
is_power, BuiltInFunction for checking if function exists
join, BuiltInFunction for appending
explode, BuiltInFunction for pop (stack/list)
stretch, BuiltInFunction for extending (arrays or stack)
len, BuiltInFunction for length
go, BuiltInFunction for running a file

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>

--For blocks of if statements:
ifyo <condition> thenpo
<your_code>
over

The list is still under progress (sorry hehe)

About

A very simplified programming language written in python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages