Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. this code stops when the user presses the 'q' key
  2. the only chars accepted are the brain chars | tabs and spaces
  3.  
  4. + add one to the 0th cell to start the while
  5. [ while (true)
  6. , read input at 1st cell
  7.  
  8. >[-] clean 2nd cell
  9.  
  10. make letter 'q' before copying at 3rd cell
  11. ++++++++++>+++++++++++*+++
  12.  
  13. <[-] go back to 2nd cell and clean it
  14.  
  15. +* copy value from 1st to 2nd cell
  16.  
  17. >% go to 3rd cell mod 2nd cell
  18.  
  19. ?
  20. [-]<< if the value is not zero clean the cell and move to 1st cell
  21. :
  22. !
  23. ;
  24. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement