Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mbikovitsky/BrainTools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: TrapperHell/BrainTools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 25 files changed
  • 1 contributor

Commits on Nov 14, 2015

  1. Fix for out-of-bound tape cell values

    The tape is supposedly working on bytes, therefore the cell values should never end up with values less than zero or greater than 255. While the values can be capped, it is much better to implement value-wrapping.
    
    Brainfuck.Run() now accepts two additional, optional parameters for the in/out streams, instead of assuming Console streams.
    
    Minor refactoring of Tape class.
    
    Added a UnitTest project with a few BFLib Brainfuck tests, also demonstrating a use-case for the tape cell value-wrapping.
    TrapperHell committed Nov 14, 2015
    Configuration menu
    Copy the full SHA
    40d8300 View commit details
    Browse the repository at this point in the history
  2. Fix for IndexOutOfRange on Unmatched loop tokens

    Some invalid Brainfuck code with an unequal amount loop start/end tokens will lead to an IndexOutOfRange exception. This fix will ensure that the program does not attempt to traverse beyond the code range and will stop execution silently instead.
    
    Some implementations of BF refuse to run the code immediately upon detecting it as invalid. This currently does not perform any pre-run checks, and as such some portions of the code may finish executing by the time the loop is encountered.
    TrapperHell committed Nov 14, 2015
    Configuration menu
    Copy the full SHA
    246d23c View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2015

  1. Configuration menu
    Copy the full SHA
    a274176 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2015

  1. - Minor adjustments

    TrapperHell committed Nov 16, 2015
    Configuration menu
    Copy the full SHA
    4c09eef View commit details
    Browse the repository at this point in the history
Loading