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 2011-11-11 4:06

Congratulations! That's 63 pages smaller than the R5RS spec.

Name: Anonymous 2011-11-11 4:15

GOT IT: Looping is specified via 8:====D body EN====D.

[spoiler]In case you're thick, that's FO[s]U[/u]R equal signs after the decorative pubic hair[/spoiler]

Name: Anonymous 2011-11-11 6:11

ONE WORD: THE FORCED EJACULATION OF THE BONER

Name: Anonymous 2011-11-11 9:10

>>4
lold

Name: Anonymous 2011-11-11 11:36

++ for string concatenation
I don't know about this

Name: Anonymous 2011-11-11 12:33

>>6
Indeed.
## should be used instead.

Name: Anonymous 2011-11-11 13:36

Will it have first-class lolis and the cuddle-with-current-continuation operator?

Name: Anonymous 2011-11-11 14:14

>>6
>>7
I'm impartial to this; ## it is! And since I was going to include variables, there needs to be an assignment operator now too, 8#=====D= dest-var value, where value can be a constant or another variable. Or maybe 8#=====D:= for all you smalltalk folks.

I'm still not 100% sure what to do for branching and looping though.

Name: Anonymous 2012-04-20 3:12

BONERLANG

Name: Anonymous 2012-04-20 4:40

cuddle-with-current-dubs

Name: Anonymous 2012-04-20 4:58

Oy, vey! Those boners better be circumcised! All our lives are simply one long Shoah!

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.

Name: Anonymous 2012-04-20 10:43

(¡) could indicate "stdin". So, you can receive a value from keyboard as:

(_*_) age = (¡)

Name: Anonymous 2012-04-20 11:09

>>13,14
( ≖‿≖)

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