Skip to content

Commit

Permalink
updated version and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aryavsaigal committed Jun 22, 2021
1 parent 6ff37ec commit 6307c5b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
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"

Expand Down
37 changes: 26 additions & 11 deletions README.md
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.

0 comments on commit 6307c5b

Please sign in to comment.