This REPL is written in Brain and comes with ABSOLUTELY NO WARRANTY.
-
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
- Interpreting through LLVM JIT:
-
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 is100
, 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 datafrom 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.