The BURL programming language.
BURL is based on perl -- in fact, it is a subset of perl, written with the Orc-programmer in mind. As such, control structures use Orkish or Black Speech instead of English; also, the rules of the scripting language are more constrained than perl. In fact, they are constrained to a format which is quite amenable to line-substitution translation into perl, strangely enough.
The most striking feature of BURL (aside from its use of Black Speech, of course) is the lopsided block delimiters nar! and sha!, which only terminate a block. BURL assumes that control structures begin all blocks (horrors!); however, there might be some kind of do{} block in Orkish. Maybe someone who knows BURL better could shed some light on that and other features. For instance, I suspect that split() in BURL makes more assumptions than perl, and it is possible that there is a vast set of 'default variables' that functions operate on.
So, without further ado, here are some examples of BURL's control structures and a simple example script.
for and foreach: ûr LIST-or-C-FOR-EXPR ...statements... nar! # (or sha!) if: gâkh EXPR ... statements ... ghâsh ELSIF-EXPR ... statements ... ghâsh ELSIF-EXPR ... statements ... ash ... else statements ... nar! # (or sha!) while: fulg EXPR ... statements ... nar! # or sha! until: kû EXPR ... statements .. nar! # or sha! perl BURL Black Speech use = ushd 'use' my = dab 'my' die = mat 'die' open = baduzg 'open' close = fauth 'lie hidden' print = mog 'voice' print; = mog! split = râkh 'cleave' split; = râkh! join = thrak 'bring/tribute' map = uzg 'land' this = za 'this' redo = urzkû 'again' last = throquf 'devoured' etc etc... a very simple example script: test.bl: u BURL uses the letter 'u' in column 1 to denote u comments. u In Orkish, 'u' means 'to, towards', and thus u probably implies something like 'ad hoc' for u BURL programmers, further strengthening the u belief that Orcs make poor code documenters. dab @sample = ( 'a', 'b', 'c', 'd', 'e' ); ûr @sample mog! nar!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: BURL: The Orcish scripting language
by Cybercosis (Monk) on Dec 20, 2001 at 07:19 UTC | |
by rje (Deacon) on Dec 20, 2001 at 20:57 UTC | |
|
Re: BURL: The Orcish scripting language
by rje (Deacon) on Dec 20, 2001 at 21:52 UTC | |
|
Re: BURL: The Orcish scripting language
by Beatnik (Parson) on Dec 20, 2001 at 21:27 UTC | |
by rje (Deacon) on Dec 20, 2001 at 22:08 UTC | |
by Beatnik (Parson) on Dec 20, 2001 at 23:00 UTC |