The Daily Click ::. Forums ::. General Chat ::. Anime Language
 

Post Reply  Post Oekaki 
 

Posted By Message

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
3rd April, 2004 at 16:33:25 -

I was bored today ;P So I made an esoteric programming language based on Brainfuck and COW, only based on anime smilies

There is an array of 3000 entries, all set to zero. You can move around the pointer around in the array, and modify the contents.

>_> increments the pointer number, >__> increments it twice, etc.
<_< decrements the pointer number, <__< decrements it twice, etc.
(that is ^ _ ^) increments the number at the pointer, ^__^ twice, etc
;_; decrements it, you get the picture

(that is @ _ @) outputs the number at the pointer as a character

o_O Starts a loop
O_o Jumps to the o_O if the pointer is not zero, otherwise it continues

http://81.99.81.238/shen/Anime.exe <- executable
http://81.99.81.238/shen/hi.txt <- Hello World example

I may give a BONUS PRIZE to anyone who comes up with something interesting with it

Image Edited by the Author.

 
gone fishin'

NovaSoft{Dynecys}



Registered
  08/03/2004
Points
  105
3rd April, 2004 at 17:08:24 -

OK, I'm gonna sound like a total retard here... But... How do I make it do something? Can you post an example bit of code?
...Thanks

 
Viddy A ClockWork Orange, Droogs...

Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
3rd April, 2004 at 17:16:27 -

Tutorial that is in order.

^________________________________________^ @ _@
The long ^__^ has 40 underscores - this adds 40 to the value. @ _@ outputs character 40 - a left bracket (.

^________________________________________^ @ _@ ^ _^ @ _@
This does the same as before, except it adds another 1 to the value afterwards, and outputs it again - the output is ().

^_________________________________^ @___@
Moves the value to 33 and outputs character 33 three times - result !!!.

^__________^ >_> ^_________________________________^ @___@
This adds 10 to the value, then moves the pointer along one, then adds 33 to the new value, then outputs !!! as above. The array looks like this:

...0 0 0 10 32 0 0...

The 10 is ignored by the program - it is in a different position in the array from the one being read. >_> and <_< shift about the position in the array.

Image Edited by the Author.

 
gone fishin'

NovaSoft{Dynecys}



Registered
  08/03/2004
Points
  105
3rd April, 2004 at 17:18:09 -

Aha, thanks... This is actually kinda fun to experiment with

 
Viddy A ClockWork Orange, Droogs...

Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
3rd April, 2004 at 17:27:52 -

ow, loops. Exceedingly tricky

^________________________________________^ o_O @ _@ ;_; O_o
This outputs('&%$#"! and some squares (The squares are the unprintable characters 0-31). The ^___^ adds 40 to the value. Then, the o_O starts a loop. The two commands in the loop, @ _@ and ;_; , are run - Character 40 is printed ( , then 1 is taken away from it. Then the O_o loops back to the o_O, so Character 39 is printed ' , and 1 is taken away from it. Then character 38 &, and so on, until the value is 0. The O_o doesn't loop back if the value is 0.

>_> ^___^ o_O <_< ^____^ >_> ;_; O_o <_< @ _@
Instead of typing a ^____^ with many underscores, you can loop it over and over again. This is quite complicated, so here's a list.
1) The >_> shifts over a position, and ^___^ adds 3 to it. 0 | 3
2) The o_O starts a loop
3) The <_< shifts back, and ^____^ adds 4 to it. 4 | 3
4) We shift back to the second position, subtract 1 from it, and go back to the start. 4 | 2
5) Kept up? We go back to the first position, and another 4 is added to it. 8 | 2
6) Then 1 is taken away from the second column. 8 | 1
7) It loops back, another 4 is added to the first: 12 | 1
8 ) Another one is taken away: 12 | 0
9) This time, the value in the second (and current) column is 0, so the loop ends.
10) We go back to the first column, with 12 in it, and output character 12, which is a boring square. Changing the number of underscores gets you letters and cool stuff

Image Edited by the Author.

 
gone fishin'

NovaSoft{Dynecys}



Registered
  08/03/2004
Points
  105
3rd April, 2004 at 17:48:56 -

Cool! Character mapper from:

^ _ ^ @ _@O_o>_>

Goddamn the error message though!

You gotta expand on this!

Image Edited by the Author.

 
Viddy A ClockWork Orange, Droogs...

Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!

vortex2



Registered
  27/05/2002
Points
  1406
3rd April, 2004 at 17:50:20 -

Pretty neat .

Image Edited by the Author.

 
A bit of insanity with every bite!

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
3rd April, 2004 at 17:59:17 -

>_> ^________________^ o_O <_< ^________________^ >_> ;_; O_o <_< ;_; @ _@ o_O <_< @ _@ ^ _^ >_> ;_; O_o
More efficient character mapper It counts up to 127 in one column, then adds 1 and displays it in another column while counting down from the other one.

Image Edited by the Author.

 
gone fishin'

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
3rd April, 2004 at 18:28:10 -

[edit]: too damn long I'll try again later

Image Edited by the Author.

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
3rd April, 2004 at 18:48:37 -

A lot of the code can be replaced, ie ;_;;_;;_; to ;___;

Oh, and since it can't support nested loops, it won't work most brainfuck programs don't, for some reason that I cannot pinpoint

Edit: Suit yourself

Image Edited by the Author.

 
gone fishin'

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
3rd April, 2004 at 18:54:40 -

well, notepad isn't smart enough to do those replacements for me X)

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
3rd April, 2004 at 18:55:33 -

Yes it is ;P Replace '^^' with '' for example

 
gone fishin'

Jack



Registered
  15/09/2002
Points
  14
4th April, 2004 at 06:19:47 -

Hehe this is cool. It's like Brainfuck (Which *of course*, we all love!!), except it looks cool.

Check this code out: It's a Brainfuck compiler written in Brainfuck: http://www.nada.kth.se/~matslina/awib/awib.b

 
Jack!

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
4th April, 2004 at 06:27:20 -

Please make a program that converts regular text to Smileyfuck (err or whatever the name is )

 
a/n

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
4th April, 2004 at 06:43:20 -

It's not hard: ^ (GetASCII(lettter) number of underscores) ^ o_O ;_; O_o
for each letter

And yes, Brainfuck was the basis for this.

Image Edited by the Author.

 
gone fishin'
   

Post Reply



 



Advertisement

Worth A Click