💾 totally not a brainfuck clone
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
code
README.md
index.js
input args.txt
input.txt
start.bat

README.md

groinfrick

Totally not a Brainfuck clone.

Usage

Running the Interpreter

Run from the included input.txt file

node .

Run a file from a path

node . ./code/readInput.txt

Giving Script Input

Add all input you want to give your script to input args.txt, newlines and whitespace will be parsed as null.

Commands

Command Purpose
^ Set current pointer to corrosponding argument point
? Echo current pointer
! Echo current pointer's data
* Exit prematurely
+ Add 1 to pointer selected
- Remove 1 from pointer selected
> Move to right pointer
< Move to left pointer
Loop Process
[, ] While current pointer is not null
{, } While current pointer is not string
(, ) While current pointer is not int

Data Types

Strings

From 1 to 26 in the QWERTY alphabet.

Integers

From 26 to infinity - so 27 == 0, 28 == 1, 29 == 2, etc.

Null

When the pointer data is equal to 0.