Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macmade/BrainDead
BrainDead is an interpreter for the BrainFuck programming language, written in C, that can be run in interactive or non-interactive mode.
https://github.com/macmade/BrainDead
Last synced: 2 months ago
JSON representation
BrainDead is an interpreter for the BrainFuck programming language, written in C, that can be run in interactive or non-interactive mode.
- Host: GitHub
- URL: https://github.com/macmade/BrainDead
- Owner: macmade
- License: other
- Created: 2011-03-30T12:20:30.000Z (almost 14 years ago)
- Default Branch: main
- Last Pushed: 2021-08-02T18:04:30.000Z (over 3 years ago)
- Last Synced: 2024-05-02T00:14:30.345Z (9 months ago)
- Language: C
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- AwesomeInterpreter - BrainDead
README
BrainDead
=========[![Build Status](https://img.shields.io/travis/macmade/BrainDead.svg?branch=master&style=flat)](https://travis-ci.org/macmade/BrainDead)
[![Issues](http://img.shields.io/github/issues/macmade/BrainDead.svg?style=flat)](https://github.com/macmade/BrainDead/issues)
![Status](https://img.shields.io/badge/status-inactive-lightgray.svg?style=flat)
![License](https://img.shields.io/badge/license-boost-brightgreen.svg?style=flat)
[![Contact](https://img.shields.io/badge/[email protected]?style=flat)](https://twitter.com/macmade)
[![Donate-Patreon](https://img.shields.io/badge/donate-patreon-yellow.svg?style=flat)](https://patreon.com/macmade)
[![Donate-Gratipay](https://img.shields.io/badge/donate-gratipay-yellow.svg?style=flat)](https://www.gratipay.com/macmade)
[![Donate-Paypal](https://img.shields.io/badge/donate-paypal-yellow.svg?style=flat)](https://paypal.me/xslabs)About
-----BrainDead is an interpreter for the BrainFuck programming language, written in C, that can be run in interactive or non-interactive mode.
Documentation
-------------### Usage
braindead [OPTIONS] [TARGET]
By default, enters the interactive mode and interprets brainfuck code from stdin.
Type `x`, `X`, `q` or `Q` to exit the interactive mode.If `TARGET` is specified, interprets it as a brainfuck code file and displays the result on the standard output.
### Code samples
Here's the brainfuck code to use to print "Hello World!":
++++++++++
[>+++>+++++++>++++++++>++++++++++>+++++++++++<<<<<-]
>>++.>>+.+++++++..>+.<<<<++.>>+++++++.>>.+++.<.--------.<<<+.Here's the brainfuck code to use to create a 'cat' like command:
,[.,],[.,]### Examples
Entering into interactive mode:
braindead
Running a brainfuck script:
braindead path/to/file
Running a brainfuck script by reading characters by characters, allocating only 2 stack cells at a time, and displaying debug informations:
braindead -drm 1 2 path/to/file
Running a brainfuck script with input from a file instead of stdin:
braindead path/to/file < path/to/input/file
### Available command line arguments:
-h, boolean, --help
Displays help about the command-v, boolean, --version
Displays the version number-l, boolean, --license
Displays the license text-m, integer, --malloc
Allocates stack cells at a time (default is 85)-r, integer, --read
Read bytes from input file at a time (default is 1024)-d, boolean, --debug
Debug mode - Displays every operation-b, boolean, --enable-breakpoints
Enables the use of '@' symbols in the brainfuck code for breakpoints-s, boolean, --enable-stack-debug
Enables the use of '$' symbols in the brainfuck code for stack debugging-z, boolean, --enable-stack-reset
Enables the use of '%' symbols in the brainfuck code for stack resetLicense
-------BrainDead is released under the terms of the Boost Software License - Version 1.0.
Repository Infos
----------------Owner: Jean-David Gadina - XS-Labs
Web: www.xs-labs.com
Blog: www.noxeos.com
Twitter: @macmade
GitHub: github.com/macmade
LinkedIn: ch.linkedin.com/in/macmade/
StackOverflow: stackoverflow.com/users/182676/macmade