From 550a1794e9460467c474d56554b62942bf911a9c Mon Sep 17 00:00:00 2001 From: johannst Date: Fri, 13 Dec 2024 22:47:47 +0000 Subject: deploy: 869761849ff64669244b6cbb79cac41f66654041 --- bf/index.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bf') diff --git a/bf/index.html b/bf/index.html index c79704e..a35065a 100644 --- a/bf/index.html +++ b/bf/index.html @@ -1,6 +1,5 @@ -bf - Rust

Crate bf

source
Expand description

Brainfuck VM.

-

This example implements a simple -brainfuck interpreter +bf - Rust

Crate bf

source
Expand description

Brainfuck VM.

+

This example implements a simple brainfuck interpreter [BrainfuckInterp] and a jit compiler [BrainfuckJit].

Brainfuck is an esoteric programming languge existing of 8 commands.

    @@ -10,7 +9,10 @@
  • - decrement data at current data pointer.
  • . output data at current data pointer.
  • , read input and store at current data pointer.
  • -
  • [ jump behind matching ‘]’ if data at data pointer is zero.
  • -
  • ] jump behind matching ‘[’ if data at data pointer is non-zero.
  • +
  • [ jump behind matching ] if data at data pointer is zero.
  • +
  • ] jump behind matching [ if data at data pointer is non-zero.
+

The following is the hello-world program from wikipedia.

+ +
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
\ No newline at end of file -- cgit v1.2.3