Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/portasynthinca3/iiifuck
weird brainfuck ripoff
https://github.com/portasynthinca3/iiifuck
Last synced: about 3 hours ago
JSON representation
weird brainfuck ripoff
- Host: GitHub
- URL: https://github.com/portasynthinca3/iiifuck
- Owner: portasynthinca3
- Created: 2021-05-30T21:38:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-30T21:40:51.000Z (over 3 years ago)
- Last Synced: 2024-11-06T03:32:18.468Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iiifuck
A Brainfuck clone that uses only three characters: I, l and |. That is, uppercase `i`, lowercase `L` and a `|` pipe. A combination of two of these characters forms an instruction. Here's the mapping:
```
| iiifuck instruction | brainfuck instruction |
|---------------------|-----------------------|
| II | > |
| Il | < |
| I| | + |
| lI | - |
| ll | . |
| l| | , |
| |I | [ |
| |l | ] |
```# usage
- `python3 iiifuck.py filename.iiif` to run an iiifuck program
- `python3 iiitransp.py transpile filename.bf` to convert a brainfuck program to an iiifuck one
- `python3 iiitransp.py detranspile filename.iiif` to convert an iiifuck program to a brainfuck one# example
```
I|I|I|I|I|I|I|I|I|I||IIII|I|I|I|I|I|I|III|I|I|I|I|I|I|I|I|I|III|I|I|III|IlIlIlIllI|lIII|I|llIII|llI|I|I|I|I|I|I|llllI|I|I|llIII|I|llIlIlI|I|I|I|I|I|I|I|I|I|I|I|I|I|I|llIIllI|I|I|lllIlIlIlIlIlIlllIlIlIlIlIlIlIlIllIII|llIIll
```Prints `Hello, World!`