This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* hext.h - Hachem's C Extensions. | |
* | |
* A set of utility functions, definitions and macros | |
* which make programming in C, a little less annoying. | |
* | |
* | |
* Author: Hachem H. | |
* Version: 0.1.1 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; The BrainCell Brainf**k Compiler | |
; -------------------------------- | |
; | |
; BrainCell is a basic brainf**k compiler written in an evening, | |
; It contains a basic transpiler which translates brainf**k code, | |
; into the equivalent C code. Then uses `gcc` to compile the | |
; generated output. Though I do recognize the fact that this | |
; is not an optimized approach in any way, shape or form, | |
; but this is a rather fun and simple project, not designed to | |
; be serious. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc -o ASCII-Cube -O2 -DNDEBUG -Wall -Wextra -Werror ASCII-Cube.c -lm | |
// ./ASCII-Cube | |
// NOTE: - Resize the terminal to at least 160 columns & 44 rows. | |
// - This does depend on a terminal which supports ASCII escape codes. | |
#include <stdbool.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <stdio.h> |