bf-interpreter-zig
所属分类:编程语言基础
开发工具:Zig
文件大小:0KB
下载次数:0
上传日期:2021-04-29 05:56:38
上 传 者:
sh-1993
说明: Ziglang bf口译员,
(Ziglang bf interpreter,)
文件列表:
build.zig (657, 2021-04-28)
example.png (1026799, 2021-04-28)
examples/ (0, 2021-04-28)
examples/0->999.bf (441, 2021-04-28)
examples/110.bf (333, 2021-04-28)
examples/196.bf (1647, 2021-04-28)
examples/666.bf (39, 2021-04-28)
examples/99bottles.bf (6660, 2021-04-28)
examples/bench.bf (205, 2021-04-28)
examples/bench2.bf (85032, 2021-04-28)
examples/bench3.bf (2374, 2021-04-28)
examples/bench4.bf (194, 2021-04-28)
examples/cell-size.bf (598, 2021-04-28)
examples/char.bf (7, 2021-04-28)
examples/chess.bf (5123, 2021-04-28)
examples/collatz.bf (437, 2021-04-28)
examples/e.bf (1123, 2021-04-28)
examples/echo.bf (8, 2021-04-28)
examples/fib.bf (226, 2021-04-28)
examples/golden-ratio.bf (1992, 2021-04-28)
examples/hanoi.bf (54592, 2021-04-28)
examples/hello.bf (175, 2021-04-28)
examples/mandel-opt.bf (11190, 2021-04-28)
examples/mandel-tiny.bf (15437, 2021-04-28)
examples/mandel.bf (11668, 2021-04-28)
examples/oobrain.bf (65352, 2021-04-28)
examples/order.bf (20768, 2021-04-28)
examples/pi.bf (40693, 2021-04-28)
examples/prime.bf (4135, 2021-04-28)
examples/rot13.bf (193, 2021-04-28)
examples/selfportrait.bf (6493, 2021-04-28)
examples/squares.bf (222, 2021-04-28)
examples/thuemorse.bf (56, 2021-04-28)
examples/tictactoe.bf (1452, 2021-04-28)
examples/triangle.bf (1643, 2021-04-28)
quick-file-arg-iterator/ (0, 2021-04-28)
src/ (0, 2021-04-28)
... ...
# BF zig interpreter
![example](https://github.com/willdoescode/bf-interpreter-zig/blob/master/example.png)
## Rules
- \> move cell pointer forward
- < move cell pointer backward
- \+ increment current cell
- \- decrement current cell
- , take a character as input and assign to current cell
- . output character value of current cell
- [ start loop
- ] end loop if current cell is zero
## Using
#### First build with the steps above
#### Then move the executable build from zig-cache/bin/ to your path
```
examples/mandel.bf
```
## Building
#### For fastest build
```shell
zig build -Drelease-small
```
#### For debug build
```shell
zig build
```
近期下载者:
相关文件:
收藏者: