Brainfuck-Interpreter-in-10-Programming-Languages

所属分类:人工智能/神经网络/深度学习
开发工具:Swift
文件大小:0KB
下载次数:0
上传日期:2017-04-09 21:35:15
上 传 者sh-1993
说明:  Brainfuck-Interpert-in-10-Programming-Languages(10编程语言),,
(Brainfuck-Interpreter-in-10-Programming-Languages,,)

文件列表:
interpreter.c (0, 2017-04-09)
interpreter.cpp (0, 2017-04-09)
interpreter.cs (0, 2017-04-09)
interpreter.go (2379, 2017-04-09)
interpreter.java (0, 2017-04-09)
interpreter.js (0, 2017-04-09)
interpreter.py (2028, 2017-04-09)
interpreter.rb (0, 2017-04-09)
interpreter.rs (0, 2017-04-09)
interpreter.swift (2884, 2017-04-09)
source.bf (107, 2017-04-09)

# Brainfuck-interpreter-in-10-Programming-Languages # What is Brainfuck Brainfuck is an esoteric programming language created in 1993 by Urban Müller, and notable for its extreme minimalism. The language consists of only eight simple commands and an instruction pointer. While it is fully Turing-complete, it is not intended for practical use, but to challenge and amuse programmers. The language's name is a reference to the slang term brainfuck, which refers to things so complicated or unusual that they exceed the limits of one's understanding. ``` > increment the data pointer (to point to the next cell to the right). < decrement the data pointer (to point to the next cell to the left). + increment (increase by one) the byte at the data pointer. - decrement (decrease by one) the byte at the data pointer. . output the byte at the data pointer. , accept one byte of input, storing its value in the byte at the data pointer. [ if the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching ] command. ] if the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching [ command. ``` Usage in Python ``` python interpreter.py -i source.bf ``` Usage in Go ``` go run interpreter.go source.bf ``` Usage in Swift ``` swiftc interpreter.swift -o swift-BF-interpreter ./swift-BF-interpreter source.bf ```

近期下载者

相关文件


收藏者