Skip to content

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
nmheim committed Mar 18, 2024
2 parents e3de5c7 + 8de2692 commit 519956f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lectures/lecture05.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ And mutate via the [`vector-set!`](https://docs.racket-lang.org/reference/vector
```

We will implement the tape and the possible operations on the tape by defining a
[closure](lectures/lecture03#closures). The closure will hold the tape itself, a pointer `ptr` to the current
[closure](lecture03#closures). The closure will hold the tape itself, a pointer `ptr` to the current
position, and will accept a number of messages `msg` that trigger operations on
the tape:

Expand Down Expand Up @@ -471,7 +471,7 @@ current value is zero at the beginning of the cycle, we skip its evaluation.
```

We are done! The complete implementation of our interpreter can be found
[here](/lectures/lecture05-brainfuck.rkt). If we add Running our interpreter on the `add-prg` will produce
[here](https://github.com/aicenter/FUP/blob/main/lectures/lecture05-brainfuck.rkt). If we add Running our interpreter on the `add-prg` will produce
the following output:
```scheme
> (run-prg add-prg '(2 3))
Expand All @@ -498,3 +498,7 @@ tape: (#(5 0 0 0 0 0 0 0 0 0) 1) input: () cmd: <
tape: (#(5 0 0 0 0 0 0 0 0 0) 0) input: () cmd: *
5
```

For larger programs you can take a look at some more
[examples](https://en.wikipedia.org/wiki/Brainfuck#Examples) or, of course, write your own Brainf*ck
programs!

0 comments on commit 519956f

Please sign in to comment.