Segfuck
Jump to navigation
Jump to search
Paradigm(s) | Imperative, Unstructured |
---|---|
Designed by | User:OliveIsAWord |
Appeared in | 2023 |
Computational class | Unknown |
Reference implementation | Unimplemented |
File extension(s) | .segfuck |
Segfuck is a variant of brainfuck which encourages frequent segmentation faults.
Language Overview
Segfuck operates on an unbounded array of uninitialized memory cells of machine word size.
Command | Description |
---|---|
>
|
Move the pointer to the right. |
<
|
Move the pointer to the left. |
0
|
Store the value 0 in the memory cell at the pointer. |
+
|
Increment the memory cell at the pointer. |
-
|
Decrement the memory cell at the pointer. |
.
|
Output the character signified by the cell at the pointer. |
,
|
Input a character and store it in the cell at the pointer. |
^
|
Set the address of the pointer to the value in the cell at the pointer. |
!
|
If the cell at the pointer is not 0, segfault.
Otherwise, if the cell at the pointer is integer n, jump to the nth instruction. |
?
|
If the cell at the pointer is not 0, do nothing.
Otherwise, if the cell at the pointer is integer n, jump to the nth instruction. |