Portable Brainfuck interpreter

Discussion in 'General Off-Topic Chat' started by chuckstudios, Aug 7, 2008.

  1. chuckstudios
    OP

    chuckstudios Putting the pro in procrastination

    Member
    896
    0
    Jul 19, 2006
    United States
    North Carolina, USA
    http://www.mediafire.com/download.php?hc5z9gtm6lw

    God, I've been bored lately. This can execute any standards-compliant Brainfuck program on any platform with a C compiler or PHP installation.

    To show you how tedious Brainfuck code is:
    CODE++++++++++[>+++++++>++++++++++>+++>+.
    Prints "Hello World!" to the screen.

    The C version has a precompiled executable included (brainfuck.exe, 4KB) which you can start from the command line (it takes one argument, the name of a Brainfuck file) or drop a Brainfuck file onto. The PHP version doesn't have any method of getting input or loading files, so you just need to change the argument to parseBrainfuck() to the code. A few sample programs are included in the "sample" directory.
     
  2. lagman

    lagman I wish I was green.

    Former Staff
    4,071
    2
    Nov 5, 2003
    Mexico
    Me, To You
    This is what you wanted to get into college for?!

    j/k [​IMG]
     
  3. xalphax

    xalphax Internet killed the Ponystar.

    Member
    1,270
    14
    Nov 18, 2006
    Croatia
    here'n'there
    i prefer Whitespace over brainfuck ^^

    esoteric programming languages for the win.
     
  4. CockroachMan

    CockroachMan Scribbling around GBATemp's kitchen.

    Member
    3,889
    5
    Jan 14, 2006
    Brazil
    Brazil
    Chuck Norris made a N64 DS emulator and a Smash Bros DS homebrew using Brainfuck..
     
  5. Sephi

    Sephi fool

    Member
    1,850
    5
    Jan 21, 2008
    United States
    Rhode Island
    LOLCODE is so much better.

    Code:
    HAI
    CAN HAS STDIO?
    VISIBLE "HAI WURLD"
    KTHXBYE
     
  6. SonicFan49

    SonicFan49 Member

    Newcomer
    26
    0
    Jul 8, 2008
    United States
    Detroit, Michigan
    Meh. Brainfuck FTW.
     
  7. Hyperlisk_

    Hyperlisk_ GBAtemp Regular

    Member
    187
    0
    Jan 30, 2008
    United States