-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ff37ec
commit 6307c5b
Showing
2 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "okfrick" | ||
version = "1.0.0" | ||
version = "1.0.3" | ||
authors = ["DARKDRAGON532 <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
# okfrick | ||
|
||
- has one memory pointer | ||
- has one memory cell | ||
- has less than 5 characters hopefully | ||
- works well | ||
- is turing complete (possibly) | ||
|
||
```markdown | ||
+ - increase memeory pointer value | ||
( - start loop (only if the pointer is not 0) | ||
) - end loop (only if the pointer is 0) | ||
! - send output | ||
? - receive input | ||
``` | ||
okfrick has only 5 characters | ||
`+!?()` | ||
|
||
i promise this is not brainf without the 30k memory cells and `-` thing | ||
these 5 characters are the only thing you need for wasting hours of your life coding useless things using this language. | ||
|
||
when the memory reaches 255 (u8) and you add to it it becomes 0 | ||
goodluck make cool things and if u do tell me what u made thanks | ||
the memory pointer has a size of u8 so you get sad faster. | ||
|
||
lets begin by looking how these characters work | ||
|
||
--- | ||
|
||
`+` - It increments the pointer by one, incase the memory cell overflows (incrementing the cell when its value is 255) it goes to 0. | ||
|
||
`!` - it outputs the decimal of the memory cell as ASCII to stdout. | ||
|
||
`?` - it gets the first char from input and overwrites its decimal value on the memory cell | ||
|
||
`(` - starting of a loop (only enters if the value of the memory cell is **not** 0) | ||
|
||
`)` - ending of the loop (only exists if the memory cell **is** 0) | ||
|
||
--- | ||
Here you go, a very epic language. | ||
|
||
Also heres a small tip which im sure most of you figured out already `(+)` resets the memory cell to 0. | ||
|
||
ok now do epic projects and send me then and if u find a bug or an error open an issue or open a PR. |