Jump to navigation Jump to search
KEMURI is a stack-based language with just six commands:
||Pops a byte from the stack and pushes its NOT.|
||Pops two bytes from the stack and pushes their XOR.|
||Duplicates the top byte on the stack.|
||Rotates top three bytes on the stack (top element becomes the third).|
||Puts the ASCII values of "Hello, world!" on the stack ("H" on top).|
||Outputs all bytes on the stack as ASCII characters. Recommended to use only at end of program.|
It is obvious that KEMURI is not Turing-complete because KEMURI has no functions for control-flow.
- It was introduced that any strings of characters in range of 0–127 could be produced without XOR command(
^) on Nishio's original blog.
- KEMURI_PLUS was designed by Nishio, as the extension of KEMURI_PLUS. KEMURI_PLUS had two extra command characters
*, both would interpret content of the stack as a brainfuck program and run.
- This would make it Turing-complete.
- Japanese Wikipedia page
- Specification and interpreter in Python on Nishio Hirokazu's blog (in Japanese)(dead link)
- English (archived)
- Specification on Hatena Keyword (in Japanese)