r/shittyprogramming • u/the_dinks • Oct 17 '15
New programming language on the scene: MemeArrow
i have a new programming language, it's called memearrow
instead of significant whitespace, brackets, or whatever, each statement is separated my levels of meme arrows
here's fizzbuzz
>for (int i = 1; i < 101; i++)
>>if (i == 3)
>>>if (i == 5)
>>>>print("FIZZBUZZ")
>>>else
>>>>print("FIZZ")
>>else if (i == 5)
>>>print("BUZZ")
>>else
>>>print(string(i))
>inb4 someone takes my idea
edit: apparently people want me to flesh this out because we're all gross nerds. i'll share what we've done. also, i don't know what shit is called so bear with me.
i mixed up the different names but thanks for everyone for the ideas. let's do this.
>inb4 fizzbuz() :^)
>>implying i from 1 to 100 :^)
>>>mfw i % 3 == 0 :^)
>>>>mfw i % 5 == 0 :^)
>>>>>ayyy "FIZZBUZZ"
>>>>fambruh :^)
>>>>>ayyy "FIZZ"
>>>fambruh mfw i % 5 == 0 :^)
>>>ayyy "BUZZ"
>>fambruh :^)
>>>ayyy i
inb4 declares a function
:^) ends control flow statements
implying is the for loops
mfw is the if statement
ayyy is the print statement (it ain't no function get yo shit outta here)
fambruh is the else statement (can be combined with mfw)
tfw returns a value
be assigns variables (duck typing)
# is the comment block, of course
69
u/AnatoleSerial Oct 17 '15
I'm saving this. I am currently taking a compilers class, and will probably be able to build a rudimentary parser.
55
u/[deleted] Oct 17 '15
>meme arrows
Rofl, good job reddit scrub.
17
u/tmewett from The Cloud™ Oct 17 '15
>real talk:
seriously, let's make this its own language like LOLCODE.
>be X, Yfor variables,>inb4for function definition,>tfwfor invocation, etc...5
u/[deleted] Oct 18 '15
"yodawg" should be a programming idiom for recursion:
4
u/Alexwalled Oct 18 '15
comment block needs to be
>implying
16
u/Jafit Oct 17 '15
This is the language that the machines will use to gain sentience and enslave humanity. This was the whole purpose of the internet to begin with.
10
u/[deleted] Oct 17 '15
6
u/HypnoToad0 Oct 17 '15
You need to incorporate wew into this
4
u/LeSpatula Oct 17 '15
So, it has a bit Brainfuck?
2
u/I_EAT_GUSHERS Oct 17 '15
Nene.
2
u/[deleted] Oct 17 '15
All hail MemeArrow
2
u/[deleted] Oct 18 '15
Only green arrows tho
2
u/clrnd Oct 19 '15
Does it have to be imperative?
-6
u/dixie_recht Oct 17 '15
>mfw you ripped off Python :^)
>>ayyy "lmao"