Coder Social home page Coder Social logo

anyfuck's Introduction

Anyfuck - Brainfuck-Like Languages Interpreter

This command-line tool interprets scripts written in Brainfuck and a few of its variants (Ook and Blub). It allows for execution directly from a file or via standard input (stdin).

Features

  • Flexible Input: Execute scripts from a file or directly via stdin.
  • Memory Customization: Configure the memory size of the interpreter's runtime environment.
  • Language Inference: Automatically infer the script language from the file extension or specify it manually.

Installation

cargo install anyfuck

Usage

anyfuck program.bf
anyfuck program.ook
anyfuck program.blub
anyfuck --memory 10000000 --language ook < some_program.txt

Options

  • --memory <SIZE>: Overrides the default brainfuck engine memory size (default is 1,000,000 cells).
  • -l, --language <LANGUAGE>: Explicitly specify the language (Brainfuck, Ook, Blub).
  • --path <FILE>: Path to the input file. If not provided, the interpreter will read from stdin.

Supported Languages

  • Brainfuck: Extensions .bf or .b
  • Ook: Extension .ook
  • Blub: Extension .blub

Contributing

Contributions to improve the interpreter or add support for more variants of brainfuck-like languages are welcome. Please submit pull requests or raise issues as needed.

anyfuck's People

Contributors

0rvar avatar szabgab avatar

Stargazers

Tulili avatar

Watchers

 avatar

Forkers

szabgab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.