Jump to content




[Programming Language] Kalbex V1.0


10 replies to this topic

#1 NeptunasLT

  • Banned
  • 147 posts
  • LocationVilnius,Lithuania

Posted 12 May 2013 - 04:35 AM

Kalbex V1.0

How to Start?
1)Download kalbex
2)Install Kalbex
3)Done :P

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)

#2 diegodan1893

  • Members
  • 164 posts
  • LocationSpain

Posted 12 May 2013 - 08:07 AM

And what is the difference between this and lua?

#3 NeptunasLT

  • Banned
  • 147 posts
  • LocationVilnius,Lithuania

Posted 13 May 2013 - 02:12 AM

View Postdiegodan1893, on 12 May 2013 - 08:07 AM, said:

And what is the difference between this and lua?
1) Commands
2) What to do (with kalbex you can use wait for user input etc.)

#4 briman0094

  • Members
  • 18 posts

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 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 May 2013 - 02:32 AM

View PostUNIXUSER400, on 12 May 2013 - 04:35 AM, said:

Download:
pastebin get PvjgMj57 /skalbex
Why a link, that just downloads another link................. :(

View PostUNIXUSER400, on 13 May 2013 - 02:12 AM, said:

1) Commands
2) What to do (with kalbex you can use wait for user input etc.)
1) What exactly do you mean by "commands"?
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 Frederikam

  • Members
  • 112 posts
  • LocationDenmark

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 diegodan1893

  • Members
  • 164 posts
  • LocationSpain

Posted 13 May 2013 - 10:13 AM

View PostUNIXUSER400, on 13 May 2013 - 02:12 AM, said:

View Postdiegodan1893, on 12 May 2013 - 08:07 AM, said:

And what is the difference between this and lua?
1) Commands
2) What to do (with kalbex you can use wait for user input etc.)
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 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

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.

#9 svdragster

  • Members
  • 222 posts
  • LocationGermany

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
-- Kalbex Version: V1.0
and 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 TheGamerOfAction

  • Members
  • 20 posts
  • LocationIn a mysterious world of 1s and 0s

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.

#11 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 21 May 2013 - 03:02 AM

View Postdiegodan1893, on 13 May 2013 - 10:13 AM, said:

For example, you can create a write function like kalbex.write("text", x, y, textColor, backgroundColor) instead of wrapping Lua functions.

Look at my cPrint API :3





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users