Gr3atWh173 / brainfuckplusplus

Brainfuck with extended features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

                                                                 
 ____                          _                                 
|  _ \                       _| |_                     _     _   
| |_) ) ___   __  ___  _  __/     \ _   ___   ___  ___| |_ _| |_ 
|  _ ( / _ \ /  \/ / || |/ ( (| |) ) | | \ \ / / |/ (_   _|_   _)
| |_) ) |_) | ()  <| || / / \_   _/| |_| |\ v /|   <  |_|   |_|  
|____/|  __/ \__/\_\\_)__/    |_|   \___/  > < |_|\_\            
      | |                                 / ^ \                  
      |_|                                /_/ \_\              
      Standard Brainfuck + File IO + Socket IO + More

Instruction Set:

  Standard:
    +   ->  Increase current cell value by 1
    -   ->  Decrease current cell value by 1
    <   ->  Move back a cell
    >   ->  Move ahead a cell
    .   ->  Print ASCII or numeric value of current cell
    ,   ->  Set cell value as ASCII code of input
    [   ->  Begin loop
    ]   ->  End loop

  Extended:
    #   ->  Open/close File
    %   ->  Write value of current cell to file
    !   ->  Read one character from file (at the current cursor position)
    @   ->  Open/close socket to localhost:1337
    &   ->  Read one char from socket and set it as val of current cell 
    *   ->  Write value of current cell to socket
    ~   ->  Goto cell[current cell value]
    $   ->  Toggle character mode

USAGE: ruby bpp.rb <file.bf>

PLANNED FEATURES:
1. Functions support
2. Interactive mode
3. Psuedo-threading support

About

Brainfuck with extended features

License:MIT License


Languages

Language:Ruby 100.0%