Author Topic: Brainfeck Code Interpreter  (Read 1518 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Brainfeck Code Interpreter
« on: March 18, 2008, 09:42:51 pm »
Script Name: Brainfeck Code Interpreter
Script Description: Using Brainfeck language, returns a string. (Example: IntrBF('[.+]'): (a list of all characters in the ASCII chart)) This is for scripters, not server owners. If you wish to use this script in your script, feel free to, but please note my name.
Original Author: Curt
Core Version: 2.6.3
Code: http://nopaste.org/p/aweEUqp1k

Due to SF's "bad word" filter, you may need to replace the "e" with a "u" on the Google search.

Here is all you can do:
+ Increments the value at the pointer
- Decrements the value at the pointer
> Increments the pointer
< Decrements the pointer
[ Start loop
] End loop; return to start loop if value at pointer is not 0
. Adds value at the pointer (as a character) to the resulting string
, Not included due to inability to type in the console

It helps to refer to http://www.asciitable.com/

Examples:
+++++[>++++++++++++++<-]++.+. will return "HI"
Basically this is Chr(5*14+2) + Chr((5*14+2) + 1); so thats a way to multiply instead of having 72 +s in a row.
« Last Edit: March 19, 2008, 05:38:03 am by DorkeyDear »

Offline rhide

  • Major
  • *
  • Posts: 60
  • Coffee-addict
    • Vrastar-Hai soldat clan
Re: Brainfeck Code Interpreter
« Reply #1 on: March 19, 2008, 07:43:05 pm »
LOL  ;D

still gj  ;)
Warning! Division by zero seriously injures yourself and the people in your surroundings.

Proud member of Vrastar-Hai:
http://www.guldheden.com/~erga050/vrastar-hai

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Brainfeck Code Interpreter
« Reply #2 on: March 20, 2008, 06:44:17 pm »
I have no idea why someone would write like that...
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Brainfeck Code Interpreter
« Reply #3 on: March 21, 2008, 05:29:44 pm »
NO FüCKING WAY :o
GJ :P