Skip to content

BF2-compiler/bf2-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

165 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck ^2

It's our take on Brainf**k programming language with some twists and additional functionality.

Documentation 📖

Documtnation is right here: Documentation

Demo

Insert gif or link to demo here

Screenshots 📸

App Screenshot

Technologies & Tools 🧰

Java ANTLR4 IntelliJ_IDEA GIT GitHub

Features 🚀

Here are some things that improve the Brainf**ck and help with building more complex applications:

  • Functions
  • Conditional statements
  • Multiple nested boards
  • Loops
    • do while
    • do
  • Embeded functions
    • READ_AS_INT
    • READ_AS_STRING
    • READ_AS_COLORS

Installation

Install BF2-compiler with (?)

  TODO

Run Locally 🏃🏼‍♂️

Clone the project

  git clone https://github.com/BF2-compiler/bf2-interpreter.git

Go to the project directory

  cd compiler

Install dependencies

  (?)

Create file with .bf2 extension

touch my_program.bf2

Open it in your editor of choice and write your code!

vim my_program.bf2

Run the program

  java 19 src/main/interpreter/Bf2App.java src/my_program.bf2

Usage/Examples 🧪

% This prints "Hello world" as text

8,8

=72 >=101> =108> =108> =111 >=32
v =100<=108<=114<=111<=119

READ_AS_STRING
% This prints letter "K" as color panels

12,15

=100v =100v =100v =100v =100v =100v =100v =100 ^^^ >
=100
>^=100 >^=100 >^=100 >^=100
<v <v <v <v
>v=100 >v=100 >v=100

READ_AS_COLORS
% Random array creation with loops

10,10

=5 if(.=?5){>=3}

if(.=?5){do{>=6}(6)}
else{do{v=81}(6)}

if(.=?5){do{>=6}(6)}
elif(.=?81){do{>=123}(6)}

PRINT_AS_INT

Related

Here are some related projects that helped us a lot:

ANTLR Brainfuck

FAQ ❓

Ask me anything

How is it different from the original?

There are many more features like reading data as colors or multidimensional board layouts. You can read about all additional features in Documentation

What can you use it for?

We don't really know yet .. For now it's just to waste your time ツ

Feedback 💡

If you have any feedback, please reach out to us at some_mail@agh.edu.pl

License 🛡️

MIT License

Authors 👏🏼

Acknowledgements 🤝🏼

About

Brainf**k alternative for people with who don't really know what to do with their time. The name says exactly what this language will do to your brain!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors