ITT the ABC Programming Language
1
Name:
Anonymous
2008-07-29 19:29
#include <stdio.h>
int main(int argc,char argv*[]){
int i = 0;
int BUFFA;
while(argv[i]!='\0'){
if(argv[i]='a')
BUFFA++;
else if(argv[i]='b')
BUFFA--;
else if(argv[i]='c')
printf("%i\n",BUFFA);
else printf("%s","Error.\n");
}
}
321
Name:
Anonymous
2010-08-17 3:13
This is the HMA gate. It requires the presence of both an anus and a haxor . Note that it is distinct from the AND gate.
anus haxor | out
------------+----------
0 0 | 0
0 1 | 0
1 0 | 0
1 1 | HAX MY ANUS
322
Name:
Anonymous
2010-08-18 19:12
>>307
this is how
real EXPERTS make use of the cpp:
#define IF(condition, statement) \
do { \
if ( (condition) ) { \
(statement); \
} \
} while (0)
323
Name:
Anonymous
2010-08-18 19:41
>>322
FV-style for decreased code size; uses GNU extensions.
#define F(a,...) ((a)?:(__VA_ARGS__))
324
Name:
Anonymous
2010-08-18 19:51
325
Name:
Anonymous
2010-08-18 19:52
>>323
uses GNU extensions.
enjoy your non standard compliant code,
``faggot'' .
326
Name:
Anonymous
2010-08-18 20:15
EXPERT GOLF SOLUTION :
{57- 1^}%'+'/'.p'*0\~;
Map x-57 xor 1: a -> ')' (golfscript increment), b -> '(' (golfscript decrement), c -> '+'. Split over '+', join array with '.p' (golfscript print), push 0, swap, execute, pop.
327
Name:
Anonymous
2010-08-18 20:18
>>325
So what's the point of programming when you don't make use of useful features to help with your problem?
328
Name:
Anonymous
2010-08-18 20:28
>>327
So what's the point of programming when you don't make use of useful features to help with your problem?
standard compliance == portability.
protip: not everyone uses Java
329
Name:
Anonymous
2010-08-18 20:37
>>328
So write a couple of functions when you need them. It's not that hard.
330
Name:
Anonymous
2010-08-18 20:49
>>329
gnu extensions != a couple of functions.
back to the imageboards, ``faggot'' .
331
Name:
Anonymous
2010-08-19 2:34
>>330
If you only use a couple of them (which realistically you will), it's only a couple of functions.
332
Name:
Anonymous
2010-08-19 3:59
>>329,331
They're not functions. They're language extensions.
333
Name:
>>331
2010-08-19 4:43
>>332
I don't mean ``functions'' in the sense of ``procedures'' or ``subroutines'', I meant it in the sense of ``functionality''.
334
Name:
Anonymous
2010-08-19 11:01
335
Name:
Anonymous
2010-08-19 14:32
Can anyone link me to the design documents for this language?
336
Name:
Anonymous
2010-08-19 14:52
>>335
I just realized it was a bad idea to sage considering it was off the front page.
What I'm really wondering is if the language is supposed to work like
>>53 writes it? Is the ``
l'' command supposed to create an infinite loop? Also shouldn't
i get set to
-1 so the first part of args[0] doesn't get ignored?
337
Name:
Anonymous
2010-08-19 15:27
Google is hard.
338
Name:
Anonymous
2010-08-19 15:33
>>337
Of course I tried to Google it, however searching for ``the ABC programming language'' yields results about a quite different language.
339
Name:
Anonymous
2010-08-19 16:32
>>338
...a language that forces the indentation of code, thread over.
340
Name:
Anonymous
2010-08-20 3:13
>>338
Read the fucking thread.
>>185
341
Name:
2010-09-08 21:49