Skip to content

MinekPo1/ArrayFuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArrayFuck

logo

ArrayFuck is an esoteric programing language.

Overview

The base of ArrayFuck is a array of integers on indexes from -32768 to 32767. By default, the array is initialized with the value 1. Each index can store values from -32768 to 32767.

There are two possible ways to access the array:

  • [-]: access the element at the index 0.
  • [<expr>]: access the element at the index of the expression.

An expression can be either a access to an array or an assignment to an array.

To assign a value to an array, you can use the following syntax:

[<expr>] = <expr>

Alternatively, you can use the following syntax:

[<expr>] - <expr>

Which will subtract the value of the expression from the element at the index of the expression.

If an assignment is used as an expression, the value of the expression will be returned.

If the square brackets are left empty, it will be used as ASCII io.

Loops

To make a loop, the colon is used.

<expr>:<assign>

The assignment will be executed until the expression is zero. If used as an expression, the last value assigned will be returned.

Comments

All characters except for [, ], =, - and : are ignored.

About

like brainfuck but worse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages