My sunday evening attempt on writing an interpreter for the Brainf*ck language in C. The interpreter is fairly complete with good amount of testing. Bug fixes/pull requests are always welcome.
Language details here and this Wikipedia article.
Some tests to validate the interpreter. Some taken from Daniel B Cristofani's page here, please check their individual writeups.
- hello.b Customary "Hello, World!" program
- eol.b End of line testing
- eod.b End of data cell testing
- lowerbound.b Test data pointer underflow
- upperbound.b Test data pointer overflow
- obscure.b Tests obscure problems
- leftunmatch.b Left paranthesis unmatched (without stack overflow)
- stkoverflow.b Stack Overflow test (left parenthesis)
- rightunmatch.b Right paranthesis unmatched
- rot13.b ROT13 Cipher test
- numwarp.b Numwarp test (Output Screenshot)