Crate boolfuck [] [src]

A rather slow Boolfuck interpreter, in case you want to help me make this more efficient go to the corresponding github page.

For tips/tutorials concerning Boolfuck visit the official homepage. It is also possible to translate Brainfuck in Boolfuck code with this crate.

Details

  • Input is taken from the console and the end of line character is removed, because now programs written with int getchar()( a function in c) in mind work correctly.(The Lost Kingdom for example) This causes problems with other programs which rely on null terminated strings or the end of line character.

  • The commands , and ; both work in little-endian order.

  • This crate is a a lot faster when run with --release!

Remarks

  • If you have created a better boolfuck interpreter I would not mind to transfer this name to you.

Structs

Boolfuck

A simple struct which contains boolfuck code and can run that code.

Enums

Token

An enum with all possible boolfuck commands and an end of file token.

Traits

ToString

Takes &self and creates a new independent string.

ToToken

Takes &self and creates a new independent Vec<Token>.