Skip to content

Commit

Permalink
Added tape terminal to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Keshav-Madhav committed Oct 3, 2024
1 parent 631d0dc commit b9ce072
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ BF2 is an extension of the Brainfuck programming language that uses the conventi

- [Introduction](#introduction)
- [Features](#features)
- [WhiteSpace and comment support](#white-space-and-comment-support)
- [Tape Terminal](#tape-terminal)
- [Tape Length Definition](#tape-length-definition)
- [Brainfuck Command Support](#brainfuck-command-support)
- [Usage](#usage)
Expand All @@ -28,6 +30,10 @@ BF2 is a remake of the original Brainfuck concept, implemented in JavaScript wit
Due to the compiler being built in javascript, an easy to implement easy of life feature has been inplemented which removes whitespaces and new/next lines. This allows to make easier to read brainfuck code which can be written out spread over multiple lines and indentation.
Comments are supported aswell as any character other than the reserved characters are removed/ignored.

### Tape Terminal

Tape terminal is a string that will be returned after the brainfuck code is interpreted. This string is formatted in a terminal style to provide feedback to the user showing exactly what changes are happening in the tape after a specific action and what is being printed during that action. This tape terminal is specially useful when writing code as it provides insight into the memory updation and allocation. The run function takes a boolean to determine whether the tape will be returned as it is a performance intensive action. Default is false meaning tape will not be recorded and performance will be optimal.

### Tape Length Definition

In BF2, tape length can be specified using the `%` symbol. The Brainfuck code between the first two `%` symbols is executed to determine the tape length.
Expand Down

0 comments on commit b9ce072

Please sign in to comment.