Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bonerlang

Name: Anonymous 2011-11-11 3:59


Dearest /prog/,
It brings me pleasure to release the newest draft specification of the wonderful BONERLANG. Please read the following implementation details and discuss what needs to be added. I'd like to get this semi-solidified soon to make a Bonerlang-to-C compiler.

#1. Functions:
They will be invoked via 8={n}D~, where n is the index into the function pointer table. This idea has already been tabled in the past. However, I present the beginnings of the standard library:
print arg1 [, ..., argk] for printing constant/variable data.
read dest-var to read data into the give variable.
and some string functions, etc etc, like
substr string start [end]
[m]strpos string1 string2 [offset] for the index of string2 in string1 starting at offset.

#2. Operators:
In prefix notation; used by [m]8#=====Dx arg1 [, ..., argk], where x is the operator. The following operators will be supported:
+ - * / % ^ ++, the last thre being for modulus, exponentiation, and string concatenation, respectively.

#3. Variables:
They are anii to be stuffed with data. As such, they are declared with the following syntax: (_*_) identifier. The anus representation was already brought forth in the past, though it was loose, using `o' instead of the puckered up `*', and it was an operator merely to dump inline C - which is no fun.

In conclusion:
I'm thinking we need a syntax for a loop construct, possibly something witty with EN=====D to signify the end of the block... And then some form of branching.

Thoughts on it all?

Name: Anonymous 2012-04-20 6:43

I'm going to open a French restaurant named ``Au Bon Erlang''.

Name: Anonymous 2012-04-20 8:26

BONERLANG — the good Erlang.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List