To our knowledge, Ked is first scripting language to emerge from The People's Republic
of Cork.
Below is an account of what we know so far about the mysterious Corkonian language.
Any suggested updates or contributions are encouraged.
remember €x = 1 like
Use remember to initialize local variables. All variable names are prepended with the Euro symbol (€), also this may be subject to change.
Also, notice the line ends with like. This is the ked statement terminator, it is not optional.
forget €x like
gospel and bull are the equivalent of true and false in other languages.
nattin = nullnumber = int, float, etclist = arraything = objectTo include one ked file inside another use the hereLa command;
hereLa 'feen.ked' like
cmereToMeWilla does the same thing, but it will also force a fatal error if the inclusion fails;
cmereToMeWilla 'boeur.ked' like
saysI 'Alright boy, calm down will ya' like
This will send the string to standard output, known in ked as The Echo.
eh( jaKnow( €x ) ){
remember €z = 1 like
}
orEh( jaKnow( €y ) ){
remember €z = 2 like
}
orEvenJust{
remember €z = 0 like
}
not = negation. ! is also a usable alias.an = &&, AND.
plus = addition.
awayFrom = substraction.
Example:
remember €x = 4 awayFrom 20 like //result: 16
times = multiplication.
into = division.
Example:
remember €x = 4 into 20 like //result: 5
is = comparison.isTheHeadOff = strict comparison. Alias: isTheAbsoluteHeadOff.
em = concatention.
Example:
remember €secret = 'You know' em 'your wan' like
It is understood that Ked has object-orientated capabilities, although very little is known so far.
To reference a method of the current thing (i.e. object) you would do the following;
youKnowYourself.doSomethin() like
For a static method, you would call it like this:
youKnowYourself::doSomethin() like
A Rebel is the ked equivalent of an exception.
A.k.a throwing exceptions
Release new Rebel("I'm gonna wreck the gaff") like
The following is how to write a try - catch - finally in ked:
giveItALash{
}
jaHearYourMan( Rebel €r ){
}
atTheEndOfTheDay{
}
session::start() like
session::topUp() like
session::wreckTheGaff() like
The ked equivalent of a while loop is denoted as follows;
eraGoOnSure( €x is not nattin an €y is 2 ){
}
ahStop like
ahGoOn like
holdOn(3) like = sleep(3);iWillYa() like = No-operation. Alias: yaTwoMinutesThereNow() likestopTheLights() like = exit;