Author Topic: Interpretor of BrainFuck  (Read 15193 times)

0 Members and 1 Guest are viewing this topic.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Interpretor of BrainFuck
« on: December 27, 2012, 11:56:22 am »
Hi there !

This is my first public project on ndless. As you may have bet, it runs BrainFuck programs. It works with ndless 3.1.
Read the readme.txt to know how you can use it. Enjoy !

Last update : BrainFuck 1.2

=============================================================================================

Bonjour à tous !

C'est mon premier projet publique pour ndless. Comme vous l'avez sans doute deviné, il exécute les programmes codés en BrainFuck et tourne sous ndless 3.1.
Lisez le lisezmoi.txt pour savoir comment l'utiliser. Enjoy !

Dernière mise à jour : BrainFuck 1.2
« Last Edit: December 28, 2012, 10:05:37 am by mdr1 »



Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BrainFuck
« Reply #1 on: December 27, 2012, 01:25:19 pm »
What brainfucking did I start.....lol
And nice :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: BrainFuck
« Reply #2 on: December 27, 2012, 01:27:06 pm »
We all heard of it before, but you reminded us :)
If you like my work: why not give me an internet?








Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: BrainFuck
« Reply #3 on: December 27, 2012, 01:27:50 pm »
Lol nice :) there should be a program for this in nspire BASIC too somewhere. Sorunome what did you start D:

Some people need a high five in the face... with a chair.
~EC

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: BrainFuck
« Reply #4 on: December 27, 2012, 01:39:45 pm »
The brainfuck craze
If you like my work: why not give me an internet?








Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BrainFuck
« Reply #5 on: December 27, 2012, 01:40:34 pm »
Lol, I only looked into it for a afternoon.
And made a IRC bot for it
And suddenly people started makeing brainfuck in axe.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: BrainFuck
« Reply #6 on: December 27, 2012, 02:11:56 pm »
Lol, since I posted this application, the chatbox is filled of Brainfuck programs. :P

Sorunome, I tested the code of your signature with my program :

Quote
++++++[>++++++++++<-]>++++++++.<+++[>+++++++++++<-]>.+++++++++++++.--.<+++[>+++<-]>.<+++[>>++++++++++<<-]>>++.<<+++++++[>-------<-]>.<+++[>+++++++++++++<-]>..+++++++.<+++[>-----<-]>--.<++[>++++++<-]>++.

The result is :



 :P



Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: BrainFuck
« Reply #7 on: December 27, 2012, 05:29:20 pm »
So it's no longer the game? :P

I should download this and then find a way to make an interpreter for yet another platform :P

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BrainFuck
« Reply #8 on: December 27, 2012, 05:30:05 pm »
My sig has two brainfuck codes, and the output was correct :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: BrainFuck
« Reply #9 on: December 27, 2012, 06:27:21 pm »
I updated the interpretor :
  • correction of a problem not closing the file when we quit before the end of the program
  • added the support of file association
Now, you can use a BrainFuck program without having to rename everytime.



Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: BrainFuck
« Reply #10 on: December 28, 2012, 10:04:17 am »
New update :
 * correction of an error appearing when the condition for a '[' is false at the first turn
 * added a little red scare at the top rigth of the screen to show when the program waits for a key to be pressed
 * added a vertical automatic scrolling
 * added the change of color when the program finishes
 * added the showing of an error when the opening of the file failed



Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Interpretor of BrainFuck
« Reply #11 on: December 28, 2012, 02:59:14 pm »
brainfuck has no errors :P
if it false on first turn it is supposed to skip the [] block, that's how you do if conditions :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: Interpretor of BrainFuck
« Reply #12 on: December 28, 2012, 04:51:32 pm »
Sorunome, now I have more stuff to do for you :

•BF compiler to Axe source on z80
•BF interpertor in basic z80
•BF interpretor in basic nspire
•BF interpretor in BF :)
____________

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Interpretor of BrainFuck
« Reply #13 on: December 28, 2012, 05:04:59 pm »
There's already a BF interpreter in nspire basic on ticalc http://www.ticalc.org/archives/files/fileinfo/433/43365.html ;)

I'll have to learn Brainfuck :D

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Interpretor of BrainFuck
« Reply #14 on: December 28, 2012, 06:09:33 pm »
Learning brainfuck is easy, mastering takes a lifetime :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!