We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Brit
Jump to navigation
Jump to search
Brit is are an esolang created to be cool looking
Brit are stack based and suport variables
you write brit code using tildas(~) and lines to separate commands,
you need the bar (|) at the beginning of each sentence, which tells the interpreter to execute the line, if it doesn't have it, it will be a comment
use lk to stack[last]
| command | description |
|---|---|
| / | push a number in stack[last] |
| ? | push a number onto the stack[last] |
| \ | redifine stack[last-1] command of brit to stack[last] |
| bar | allow brit to run the line code |
| . | print stack[last] |
| > | discard the stack[last]item |
| ! | split stack[last-1] by stack[last] |
| J | join stack[last-1] with stack[last] |
| ' | join the list stack[last-1] into one word with stack[last] between the letters |
| T | reverse the stack |
| Y | push the stack[last] reversed |
| { | run the stack[last] as brit code |
| R | run the command writen(util for functions) |
| % | pick input |
| @ | push stack[last] ascii code |
| " | push stack[last] ascii letter |
| [ | create var stack[last] |
| = | set var stack[last-1] to stack[last] |
| ] | remove var stack[last] |
| < | jump to line stack[last] if stack[last - 1] = stack[last - 2] |
| H | halt the program |
| ¹ | push label[line of label + 1] into labels |
| ² | go to label stack[last] item of labels |
| L | pop the stack[last] and move it to stack[first] (simply, shift rotate stack to the left) |
| F | push the stack[last] as flatten |
| C | clear the stack |
| K | same as C, but keep the stack[first] |
| } | do aritmatic of stack[last-1] and stack[last] (-+*/ and module(\)) |
| ( | set var stack[last] to an empty list |
| ) | push stack[last-1] to stack[last] list var |
| : | pop stack[last] list var and push-it |
| ; | push stack[last] var value |
| X | push stack[last], replacing stack[last-2] with stack[last-1] at stack[last] |
| + | duplicate stack[last] |
| D | if stack[last] and stack[last-1] are equal, run the command write |
| B | turn off \ effects |
| V | turn on \ effects |
| Q | if stack[last] and stack[last-1] are 1, 1 (and operator) |
| W | if stack[last] or stack[last-1] are 1, 1 (or operator) |
| N | if stack[last] is 1, 0, the same for 0 (not operator) |
|~/~Hello World! |~.
Cat:
|~% |~.
|~% |~?~1 |~?~9 |~< |~K |~. |~H | |~C |~¹ |~?~1 |~. |~²
link to it on Snap!: [1]