GithubHelp home page GithubHelp logo

riko's Introduction

Riko

New programing language based on python

How to run program: Go to cmd (windows + r, type cmd and click enter or click windows button on screen or on keyboard and type cmd)

while you are in cmd type riko "FileName.rk"

if you see "'riko' is not recognized as an internal or external command, operable program or batch file."

finde where riko is stored and copy full path go to environment variables click path then new and type path to program.

Or copy this in .bat file

SET PATH=%PATH%;YOUR_PROGRAM_DIR_HERE

Now when you have it in you path you can start program like this(in cmd)

riko "Filename"

Update logs:


2 November 2022

bug fixed 3 New build in functions:
#Random
Random(Max Number)
#Returns number


#Read
Read(File name, Mod <"text" or "byte">)
#Returns string


#Write
Write(File name, Mod <"text" or "byte">, content)
#Returns null
3 November 2022

In this new update you can import/read/write in your files
4 New build in functions:
#Change directory
cdir(Dir)
#Returns null

#gets the current selected directory
get_dir()
#Returns string

#Delets file/folder/tree
delete(mod <"file", "dir" or "tree", dir/file>)
#Rturns null

#lists all files and folders in folder
listdir(dir)
#Returns list
4 November 2022

Removed 1 build in function (input_int)
9 New build in functions:
#Get content of list by index
get_index(list, index)
#Returns obj

#Edits list content
edit_index(list, index, value)
#Returns null

#Makes object for gui use
GuiMake(id, type <"root", "label", "button", "entry", "text", "list">)
#Returns null

#Configs object of gui !!!-{This function is not 100% done}-!!!
GuiConfig(id, setting, value)
#Returns null

#Starts mainloop of gui
GuiMainloop()
#Returns null

#int
int(Obj)
#Returns intiger

#str
str(Obj)
#Returns string

#bool
bool(Obj)
#Returns bool

#float
float(Obj)
#Returns float
8 November 2022

Improved function GuiConfig
5 New build in functions:
#Makes Image
image(Id type, size_X, size_Y FillColor)
#Returns null

#Puts pixel of int color in image
image_putpixel(id, X, Y, color)
#Returns null

#Saves image
image_save(id, File name)
#Returns null

#Makes thread in main thread
thread(function, args)
#Returns null

#Removes all errors while runinng that function
pcall(function, args)
#Returns null
13 November 2022

replaced function get_index with replace
New keyword!!!
CLASS
class name ():
  fun init(args):
    print(args)
  end
end

name("Value")
24 November 2022

math_pi -> pi
fixed the way riko is reading your file dir
now you can put numbers like
1000,00000 == 100000000 > true
1000_000_00 == 1000,0,0__000 > true
and added experimental trs.json (translate.json)
This file is used to modify original key words
if you want to modify keywords paste new trs.json file in same dir as your program
open the trs.json file and you can modify keywords there
Happy coding
______
25 November 2022

Fixed reading files on program start
and fixed reading trs.json
______
28 November 2022

One of bigger updates comming soon:
you will be able to import (for now):
-.py,
-.lua,
-.js,
-c++
-(in the plan are ruby, rust and java )
______

How do you use riko

it is easy

Key Words

[
'var',
'and',
'or',
'not',
'if',
'elif',
'else',
'for',
'to',
'step',
'while',
'fun',
'then',
'end',
'return',
'continue',
'break',
'class',
]

Build in functions/variables

[
"print",
"input",
"clear",
"is_number",
"is_string",
"is_list",
"is_function",
"append",
"pop",
"extend",
"len",
"run",
"random",
"read",
"write",
"cdir",
"get_dir",
"delete",
"listdir",
"replace",
"edit_index",
"GuiMake",
"GuiConfig",
"GuiMainloop",
"str",
"int",
"float",
"bool",
"image",
"image_putpixel",
"image_save",
"thread",
"pcall",

"true",
"false",
"null",
"pi"
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.