一个互动的脑力翻译

ibf的Python项目详细描述


互动大脑

一个用bython写的互动式大脑翻译。为什么不?

要从源代码安装,必须首先将bython源代码构建到python包中:

$ make build

然后,移动到python文件夹,并运行安装脚本:

$ cd python
$ sudo -H pip3 install .

安装后,使用ibf命令运行交互式会话:

$ ibf 
Interactive BrainFuck - ibf v0.1

ibf is licensed under the permissive MIT license. Full license and
copyright information is available at the project's GitHub repository.

[Input] +[------->++<]>-.------------.--[--->+<]>--.+.+++[->+++<]>.+++++++++++++.[-->+++++<]>+++.[-->+++++++<]>.++.---.------------.-[--->+<]>----.+++[->+++<]>++.--[--->+<]>--.+.-----------.+++++.-------------.--[--->+<]>-.-----.+++.>++++++++++.
master procrastinator

你输入的所有东西都被解释为脑残代码,除了以下 保留关键字:

CommandDescription
tapePrints the current status of the tape (data cells), with the current cell in bold
posPrints the current position on the tape
quitQuits the session
run <file>Run code from a file

你也可以运行预先编写好的大脑操代码,或者作为一个独立的程序,或者 在交互式会话中:

$ ibf test.bf
Hello World!
$ ibf 
Interactive BrainFuck - ibf v0.1

ibf is licensed under the permissive MIT license. Full license and
copyright information is available at the project's GitHub repository.

[Input] run test.bf
Hello World!

run命令始终运行程序inline,即代码在 当前磁带和当前磁带位置作为起始位置。因此, 运行程序后,您可以检查磁带的最终状态:

[Input] tape
 0 1  2   3  4  5  6 7 8
 0 0 72 100 87 33 10 0 0

有关更多帮助,请键入ibf -h,或通过运行man ibf查看手册页。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Requestcontextholder在spring 4中具有并发访问权限。IBMWebSphere上的x Web应用程序?   java如何下载、设置和使用Eclipse?   java如何组合这些mysql语句   java JDBC无法连接到openshift上的mysql数据库   如果存在允许正确处理的重载,java对于方便的方法来说是否可行?   使用hibernate序列的java Spring MVC不存在   具有路径的java Selenium ChromeDriver负载扩展问题   读一本书。java中的java文件   退出队列时,Java队列程序结果为空   Java lambda返回带有重复代码问题的列表   java使用意图从其他活动传递数据并在listview中显示   java如何在java中创建JSON输出   java Android:在不破坏或暂停活动的情况下关闭显示   支持Android电视和手机的java多apk   关于Java应用程序测试和调试的一组问题   如何在JavaSE中使用jdbcRealmShiro进行授权   在java中是否有一个无异常检查的URL解析实用程序?   当页面上有多个相同类型的元素时,java会选择一个特定的元素   递归需要帮助发现java代码中的缺陷