Skip to content

Files

Latest commit

 

History

History

repl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Brain REPL

This REPL is written in Brain and comes with ABSOLUTELY NO WARRANTY.

Logo

FAQ

  • How to execute this REPL? There are two ways: (Make sure you have brain installed)

    • Interpreting through LLVM JIT: brain repl.brain --io=repl
    • Compiling it: make && ./repl
  • How to increase REPL tape size? It's simple. When running this REPL, use the command --size=<desired_number_of_cells>. Example: brain repl.brain --io=repl --size=200. Important Note: The default value is 100, anything more than that will require the compiler to alloc more memory in order to fit your tape.

  • How to increase inner interpreter tape size? It's also very simple. Increase the number at cell 3. The default value is 79. That means that the compiler will keep your typed data from the cell 79 through its last tape cell. Changing the value at this cell will Push your values forward and therefore it will increase your inner size. See also how to increase your REPL tape size.