View mode: basic / threaded / horizontal-split · Log in · Help
January 17, 2012
DuckFuck v0.2: D-based FuckFuck and More! (Such as BrainFuck)
(I've put far too much effort into this... ;) )

Introducing DuckFuck: ( http://bitbucket.org/Abscissa/duckfuck )

A flexible, modular D-based interpreter/conversion system for FuckFuck and 
other BrainFuck-based langauges. Includes the DuckFucker: A command-line 
tool to interpret any supported langauge.

Currently supported:

Languages:
   - brainfuck: http://esoteric.voxelperfect.net/wiki/Brainfuck
   - fuckfuck:
       http://esoteric.voxelperfect.net/wiki/Fuckfuck
       http://web.archive.org/web/20050318095341/http://www.chilliwilli.co.uk/ff/

Backends:
   - Compile time conversion to D
   - Runtime Interpreter

Sample usage:
---------------------------------------------
// Hello World! Interpreted brainfuck at runtime.
brainfuck("
   This is a basic hello world in brainfuck
   >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
   <.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.
   Neat huh?
");
writeln();

// Echo. Converted from fuckfuck to D at compile-time.
auto echoThis = "Echo this!";
mixin(fuckfuck!(echoThis, null, "
   /* This is 'echo' in fuckfuck */
   knob  /* read input to current tape cell */
   ARSE
           /* Inside the loop */
           COCKKNOB  /* write output at current tape cell, read input */
   B U T T  /* repeat until current tape cell is \x00 (ie, end of file - 
automatically sent when input string is exhausted) */
"));

or:

$duckfucker hello.bf
Hello World!
$duckfucker echo.ff < input.txt > output.txt
---------------------------------------------

Input and output can be from (mix and match!):
   - stdin/stdout (default)
   - named array
   - generator/sink function

Homepage: http://bitbucket.org/Abscissa/duckfuck
More detailed information: 
https://bitbucket.org/Abscissa/duckfuck/src/master/README.txt
January 17, 2012
Re: DuckFuck v0.2: D-based FuckFuck and More! (Such as BrainFuck)
i heard the rumour there actually are peta activists intelligent enough 
to code! so to prevent possible death threats you probably should add a 
disclaimer that no duck was/is harmed (!?) during the development 
process or use. ;)
January 17, 2012
Re: DuckFuck v0.2: D-based FuckFuck and More! (Such as BrainFuck)
"Mirko Pilger" <mirko.pilger@gmail.com> wrote in message 
news:jf4eds$2r99$1@digitalmars.com...
>i heard the rumour there actually are peta activists intelligent enough to 
>code! so to prevent possible death threats you probably should add a 
>disclaimer that no duck was/is harmed (!?) during the development process 
>or use. ;)

Huh? I don't understand why an exhibitionist club would be concerned about 
animals... (Nyuk, nyuk, nyuk! ;) ) I'd kinda like for them to come protest 
me :)  NSFW: http://www.google.com/images?q=peta+protests

Now the ASPCA might scare me, but my software helps keep the ducks from 
going extinct!
Top | Discussion index | About this forum | D home