https://github.com/fastering18/lua-brainfuck
Brainfuck interpreter written in lua
https://github.com/fastering18/lua-brainfuck
brainfuck roblox
Last synced: 9 days ago
JSON representation
Brainfuck interpreter written in lua
- Host: GitHub
- URL: https://github.com/fastering18/lua-brainfuck
- Owner: Fastering18
- License: mit
- Created: 2022-03-04T16:34:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-04T17:11:19.000Z (over 4 years ago)
- Last Synced: 2025-03-28T22:38:14.257Z (over 1 year ago)
- Topics: brainfuck, roblox
- Language: Lua
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lua-brainfuck
Translate brainf code into human-readable string for you!
> **DON'T store secret data using this module.
> Use hash encryption for better security.**
## Usage
```lua
-- Usage (chaining using two memory)
local encryptor = require(PATH TO BRAINFUCK FILE)
-- Decode
local runtime = encryptor.decode(
">++++++[-<++++++++++>]<++++++.".. -- B (66): 6 * 10 + 6
"-.".. -- A (65): 66 - 1
"++++++++++.".. -- K (75): 65 + 10
"----------." -- A (65): 75 - 10
)
if runtime.error then -- check for possible error
error(runtime.error)
else
print(runtime.result) --> "BAKA"
end
-- Encode
-- *take result from previous decode
local onichan = encryptor.encode(runtime.result)
print(onichan) --> ">++++++[-<++++++++++>]<++++++.-.++++++++++.----------."
```
### Links
[Discord server](https://discord.gg/FHVjsSg7jU)
[Roblox](https://www.roblox.com/users/467971019/profile)
Issue and contributing are welcomed!