Kalbex V1.0
How to Start?
1)Download kalbex
2)Install Kalbex
3)Done
How to use Kalbex?
1)create new file
2)Type this code to use kalbex:
os.loadAPI("/krom/kalbex")
3)You are done and file loaded kalbex Programming Language.
Kalbex Command List:
kalbex.writeln("TEXT") -- prints text
kalbex.wrt("TEXT") -- writes text
kalbex.textcolor(colorcode) -- sets text color
kalbex.textbackcolor(colorcode) -- Sets text background color
kalbex.clrscr() -- Clears screen
kalbex.getosv() Gets CraftOS version and prints on screen
kalbex.shutdown() -- Shutdowns Machine
kalbex.reboot() -- Reboots machine
kalbex.getkv() -- Gets Kalbex Version
Kalbex Included:
KOS [Comming]
You are free to use it on your own OS but you can't change any thing in /krom/kalbex or /krom
Download:
pastebin get PvjgMj57 /skalbex
Credits:
UNIXUSER400 krom
In new version:
Kpromt
Drivers (For Example Keyboard)
0
[Programming Language] Kalbex V1.0
Started by NeptunasLT, May 12 2013 04:35 AM
10 replies to this topic
#1
Posted 12 May 2013 - 04:35 AM
#2
Posted 12 May 2013 - 08:07 AM
And what is the difference between this and lua?
#4
Posted 13 May 2013 - 02:29 AM
Commands...as in the things you can already do in Lua? Stop trying to pull this off as some "programming language." It's aliases for other functions. I vote to lock.
#5
Posted 13 May 2013 - 02:32 AM
UNIXUSER400, on 12 May 2013 - 04:35 AM, said:
Download:
pastebin get PvjgMj57 /skalbex
pastebin get PvjgMj57 /skalbex
UNIXUSER400, on 13 May 2013 - 02:12 AM, said:
1) Commands
2) What to do (with kalbex you can use wait for user input etc.)
2) What to do (with kalbex you can use wait for user input etc.)
2) What? So much confusion with that statement o.O
3) Its just a wrapper around existing functions, so it just adds more overhead to programs, maybe if more was being done, but you're doing just a simple one line call in each function.
#6
Posted 13 May 2013 - 02:56 AM
- This is an API, not a programming language.
- You got 31 lines of code. Lua got roughly 20000.
- Most of these functions does nothing else than to refer to a function from cc/Lua.
- It's easier to just call a function from cc/Lua directly.
- It's completely useless.
- It's called functions; not commands.
#7
Posted 13 May 2013 - 10:13 AM
UNIXUSER400, on 13 May 2013 - 02:12 AM, said:
I meant, why should I use kalbex.writeln("TEXT") instead of print("text")? It's faster to write and more efficient. This API is completely useless, but you can expand this API and it will be more useful. For example, you can create a write function like kalbex.write("text", x, y, textColor, backgroundColor) instead of wrapping Lua functions.
#8
Posted 16 May 2013 - 01:18 AM
I am just wondering...but what is the difference between this and the term and OS API?
There is none, it is just copied.
EDIT: I wonder what will happen with the KOS? Why not just use the term and textutils APIs instead? That way we don't need to install this...API.
There is none, it is just copied.
EDIT: I wonder what will happen with the KOS? Why not just use the term and textutils APIs instead? That way we don't need to install this...API.
#9
Posted 18 May 2013 - 03:38 AM
This is really no Programming language It's an API, which only uses different names for same stuff.
But of course, here is a thing you could improve.
At the top of your program you have in line 2
Here you could make it easier:
Of course this isn't really necessary in a short code, but in longer programs this is useful so you don't have to write everything over and over again.
But of course, here is a thing you could improve.
At the top of your program you have in line 2
-- Kalbex Version: V1.0and at the bottom
function getkv() print("Kalbex Version: V1.0") print("Coded by UNIXUSER400") end
Here you could make it easier:
version = "V1.0" author = "UNIXUSER400" function getkv() print("Kalbex Version: "..version) print("Coded by "..author) end
Of course this isn't really necessary in a short code, but in longer programs this is useful so you don't have to write everything over and over again.
#10
Posted 19 May 2013 - 02:59 AM
Like many people, I believe these 'Commands' are just aliases for actual Lua functions. You could, however, make them more sophisticated than the Lua functions, as diegodan1893 has already suggested.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users