0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

環境構築Ref完全版 -Bainfuck-

0
Last updated at Posted at 2020-10-21

Brainfuckとは?

難解言語。ふむふむ。8文字だけで構成。

> Move the pointer to the right
< Move the pointer to the left
+ Increment the memory cell at the pointer
- Decrement the memory cell at the pointer
. Output the character signified by the cell at the pointer
, Input a character and store it in the cell at the pointer
[ Jump past the matching ] if the cell at the pointer is 0
] Jump back to the matching [ if the cell at the pointer is nonzero
//Hello, World!をコードで書くと。
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

Brainfuck 環境構築

1.Linux -Brainfuck-


//Linuxの場合
//ubuntuの例

sudo apt-get install bf

$ bf test.bf
Hello World

3.その他 -Brainfuck-

//Python
pip install brainfuck. 
pip install brainfuck-interpreter

//Rust
//インストール
cargo install brain-brainfuck

//実行
cargo run --bin brainfuck -- filename
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?