Bruzzet
Jump to navigation
Jump to search
Bruzzet is a stack-based esoteric programming language under construction by User:DanielE. It has 9 commands:
| Command | What it does |
|---|---|
| ( | Opens stack function. |
| [ | Opens I/O function. |
| < | Opens math function. |
| { | Opens flow control function. |
| ) | Executes stack function. |
| ] | Executes I/O function. |
| > | Executes math function. |
| } | Executes flow control function. |
| - | Decreases value of next function. |
The language is called "Bruzzet" because it is a "bracket puzzle".
How it works
In Bruzzet, the distance between an opening bracket and a closing one determines which exact command is used. E.g., ({) has a distance of 1 between ( and ), and {)<)(>} would have 5. The command is executed once a closing bracket is reached.
| Type of brackets used | Distance | What it does |
|---|---|---|
| () | 1 | . |
| () | 2 | . |
| () | 3 | . |
| () | 4 | . |
| () | 5 | . |
| () | 6 | . |
| [] | 1 | . |
| [] | 2 | . |
| [] | 3 | . |
| [] | 4 | . |
| [] | 5 | . |
| [] | 6 | . |
| <> | 1 | . |
| <> | 2 | . |
| <> | 3 | . |
| <> | 4 | . |
| <> | 5 | . |
| <> | 6 | . |
| {} | 1 | . |
| {} | 2 | . |
| {} | 3 | . |
| {} | 4 | . |
| {} | 5 | . |
| {} | 6 | . |