https://github.com/barrettotte/groovy-bf
Yet another BF interpreter written in Groovy
https://github.com/barrettotte/groovy-bf
brainfuck brainfuck-interpreter groovy groovy-language
Last synced: over 1 year ago
JSON representation
Yet another BF interpreter written in Groovy
- Host: GitHub
- URL: https://github.com/barrettotte/groovy-bf
- Owner: barrettotte
- License: mit
- Created: 2019-10-11T17:37:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-11T19:16:00.000Z (almost 7 years ago)
- Last Synced: 2025-02-03T13:13:21.520Z (over 1 year ago)
- Topics: brainfuck, brainfuck-interpreter, groovy, groovy-language
- Language: Brainfuck
- Size: 63.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Groovy-BF
Yet another BF interpreter written in Groovy
## Examples
```groovy
Interpreter interpreter = new Interpreter()
def bf = '++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.'
println interpreter.interpret(bf) // 'Hello, World!\n'
```
## To Do
In addition to the basic interpreter, I really want to make a BF code generator.
## References
* Summary of what BF is https://gist.github.com/roachhd/dce54bec8ba55fb17d3a
* https://en.wikipedia.org/wiki/Brainfuck (Hello World test case)
* Mandelbrot set in BF by Erik Bosman
* https://github.com/erikdubbelboer/brainfuck-jit/blob/master/mandelbrot.bf
* Output found in mandelbrot.out.txt (TODO: run it and record how long it takes)