Get Started

Learn how to install & start using Kelly.

Installation

              
                $ wget https://github.com/Buscedv/Kelly/Kelly.py
              
            

Create A Kelly File

Create a text file in any text editor with the preferd extension .ke

Run Kelly

              
                $ python Kelly.py code.ke
              
            

Hello World In Kelly

Create a text file and type: print ("Hello World") (and add a new line at the end of the file ) Then run the file!

And You should see the output Hello World!


Features

Syntax Feature Visable Output
print ("Hello") Prints the string between the ""'s yes
print (variable) Print out the variable bethween the parentathese. yes
str (var_name = "Hello") Creates a variable called 'var_name' egual to the string "Hello" no
str (cmd_out = othercmd ("cat file.txt")) Creates a variable equal to a commands output in this case 'cat' no
str (cmd_out = othercmd ($mycommand)) Creates a variable equal to a commands output in this case the variable 'mycommand' no
str (text = file (read "myfile.txt")) Reads a text file and stores it in a variable no
str (text = (file (read $filename))) Render table with Scribbler’s pretty table style. no
str (var1 = $var >> "More Text") Combineds a variable and a string into a new variable. no
num (my_num = 1) Creates a number variable (int) no
num (num1 = math (1+2)) Creates an int equal to the answer to an equation no
num (num1 = math ($num2*num3)) Creates an int equal to the answer to an equation (with numbers from variables) no
var (my_str = str1 >> str2) Combindes two variables into a new variable no
math (1+2) Outputs the answer to the screen. yes
math ($num1/num2) Outputs the answer to the equation with numbers from var's yes
input (name "Enter Your name: ") User input with the titel 'Enter Your Name: ' and stores the input into a variable. yes
file (create "file.txt") Creates a text file no
file (create $filename) Creates a text file with filename from var no
file (write "Some Text" >> "file.txt") Writes text to file no
file (write $mystr >> $filename) Writes text to file (text from var & filename from var) no
file (rm "file.txt") Deletes a text file no
file (rm $filename) Deletes a text file (filename from var) no
othercmd ("figlet hello") Executes Command From Outside The language (not cross plattform) yes/no
othercmd ($cmd) Executes Command (command from var) From Outside The language (not cross plattform) yes/no
clear Clears the screen no
credits Shows credits yes
help Shows help menu yes
exit Exits Kelly no

Issues

If you find any issues, bugs, etc. Please report them on the github page.