Brainfuck interpreter written in the C preprocessor

August 9, 2020 ยท View on GitHub

#include "bf.h"

#define LHS 2 #define RHS 5

PPFUCK ( (LHS, RHS), G // G ("get") is , R G // R ("right") is > ( // ( is [ L I // I ("increment") is +, L ("left") is < R D // D ("decrement") is - ) // ) is ] I I I I I I I I ( L I I I I I I R D ) L P // P ("put") is . ) // prints "7"