Giter VIP home page Giter VIP logo

brainfuck's Introduction

brainfuck

This repository contains interpreters of the Brainfuck esoteric programming language written by yours truly. It's stuff that I made or at least started a long time ago for fun.

Don't take any of this very seriously, but hey, if you think there are ways to improve upon anything here, let me know! I'm always open to learning new things.

brainfuck's People

Contributors

d3adb5 avatar

Stargazers

 avatar

Watchers

 avatar

brainfuck's Issues

Write tests for available interpreters

Writing a Brainfuck interpreter is a simple exercise when picking up new programming languages. Another interesting exercise is to familiarize oneself with a testing library / framework / method. The available interpreters currently lack any sort of testing, and would probably do well with some. Or I'd do well with some.

Who knows?

Make use of QuickCheck for Haskell tests

QuickCheck is a useful tool to randomize test parameters when unit testing. It allows testing of somewhat unbiased parameters, which can happen as the developer cannot fathom all possible use/test cases when writing tests.

It would be interesting to add this tool to the HSpec tests in the Haskell implementation.

Test interpreters using example programs

Test the interpreters in this repository by using example programs and assertions on the program's output.

E.g.: the following program should show "Hello World!" on the screen.

>++++++++[-<+++++++++>]<.>>+>-[+]++>++>+++[>[->+++<<+++>]<<]>-----.>->
+++..+++.>-.<<+[>[+>+]>>]<--------------.>>.+++.------.--------.>+.>+.

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.