【文件属性】:
文件名称:brainfuck:Brainfuck 多种语言的口译员
文件大小:13KB
文件格式:ZIP
更新时间:2021-06-26 07:52:47
Assembly
Brainfuck 口译员
这个存储库是多种语言的brainfuck 解释器的集合。
脑子……操?
是一种模仿的编程语言。 这种语言的目标是使解释器和编译器尽可能短。 当然,阅读源代码的人该死。
测试方法
每个解释器都经过 helloworld 和测试。
运行解释器
Python:
克隆存储库并更改到存储库的目录。
python python\brainfuck.py helloworld.bf
> Hello World!
对于 rot13,您需要将要加密的消息作为参数:
python python\brainfuck.py rot13.bf encrypt_this!
> rapelcg_guvf!
运行测试:
cd python
py.test test.py
C:
gcc -Wall c/main.c -o brainfuck
./brainfuck hell