Giter Site home page Giter Site logo

brainfix-language's Introduction

BrainFix

BrainF#ck with additional features that makes it easier, which eliminates the entire point of the BrainF#ck language.. ๐Ÿ™ƒ Cell values are stored as char and the value range is between Char.MinValue and Char.MaxValue, not 0 and 255. Therefore it does not work well for now

Basic Commands

  1. > Go to next cell
  2. < Go to previous cell
  3. + Add 1 to current cell
  4. - Subtract 1 from current cell
  5. M Max the value of the current cell
  6. O Zero the value of the current cell
  7. . Print the current cell value as ascii
  8. , Take input from the user

If|else

Basic syntax of an if statement: [A Comparison Symbol][Number]?(execute here if so)|(executed here if not so)K You must put K at the end of an if-else statement. |(pipe) seperates the if and else part. i.e. V10?-|+K if value of the current cell is less than 10, subtract it by one (-). Else(|) add one to it (+). And end the if-else statement (K)

Comparison Symbols
  1. ^: Greater than
  2. V: Less than
  3. =: Equal to

Debug Commands

  1. @*: Prints the cell no
  2. @.: Prints the cell value
  3. @ฤž: ๐Ÿคฆโ€โ™‚๏ธ

Comments

Anything between two # are not executed. #This is a comment#

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.