brainclusterfuck 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in brainclusterfuck.gemspec
4
+ gemspec
5
+
6
+ group [:test, :development] do
7
+ gem 'should_not', '~> 1.0'
8
+ end
data/LICENSE.mit ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Mark Rushakoff
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Brainclusterfuck
2
+
3
+ A clean interface to controlling arrays of specialized Brainfuck VMs
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'brainclusterfuck'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install brainclusterfuck
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'brainclusterfuck/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "brainclusterfuck"
8
+ spec.version = Brainclusterfuck::VERSION
9
+ spec.authors = ["Mark Rushakoff"]
10
+ spec.email = ["mark.rushakoff@gmail.com"]
11
+ spec.description = %q{Provides a clean interface to arrays of Brainfuck VMs, primarily to use for asynchronous processing.}
12
+ spec.summary = %q{Clean API to arrays of Brainfuck VMs}
13
+ spec.homepage = "http://github.com/mark-rushakoff/brainclusterfuck"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec", "~> 2.13"
24
+ end
@@ -0,0 +1,9 @@
1
+ module Brainclusterfuck
2
+ class Cells
3
+ attr_reader :size
4
+
5
+ def initialize(size)
6
+ @size = size.to_i
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,66 @@
1
+ require 'brainclusterfuck/opcode/modify_value'
2
+ require 'brainclusterfuck/opcode/modify_pointer'
3
+
4
+ module Brainclusterfuck
5
+ class Compiler
6
+ attr_reader :bytecode
7
+ def initialize(tokens)
8
+ raise "No tokens supplied" if tokens.size == 0
9
+
10
+ @bytecode = tokens.map do |token|
11
+ process_token(token)
12
+ end
13
+ end
14
+
15
+ # Merge consecutive modify value or modify pointer operations
16
+ def squeeze_operations!
17
+ compressed = [@bytecode.shift]
18
+
19
+ @bytecode.each do |opcode|
20
+ last = compressed[-1]
21
+ if opcode.can_squeeze_with?(last)
22
+ compressed[-1] = opcode.squeeze_with(last)
23
+ else
24
+ compressed << opcode
25
+ end
26
+ end
27
+
28
+ @bytecode = compressed
29
+ end
30
+
31
+ private
32
+ def process_token(token)
33
+ case token
34
+ when :v_incr
35
+ Opcode::ModifyValue.new(1, 1)
36
+ when :v_decr
37
+ Opcode::ModifyValue.new(-1, 1)
38
+ when :p_incr
39
+ Opcode::ModifyPointer.new(1, 1)
40
+ when :p_decr
41
+ Opcode::ModifyPointer.new(-1, 1)
42
+ when :print
43
+ Opcode::Print.new
44
+ else
45
+ raise "Don't know how to handle token: #{token}"
46
+ end
47
+ end
48
+
49
+ def compress_bytecode(bytecode)
50
+ compressed = [bytecode.shift]
51
+
52
+ bytecode.each do |op, value|
53
+ case op
54
+ when :modify_value, :modify_pointer
55
+ if compressed[-1][0] == op
56
+ compressed[-1][1] += value
57
+ else
58
+ compressed << [op, value]
59
+ end
60
+ end
61
+ end
62
+
63
+ compressed
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,38 @@
1
+ module Brainclusterfuck
2
+ class Lexer
3
+ attr_reader :instruction_chars, :tokens
4
+
5
+ def initialize(instruction_string)
6
+ @instruction_chars = sanitize(instruction_string).split('').freeze
7
+ @tokens = tokenize(@instruction_chars)
8
+ end
9
+
10
+ private
11
+ def sanitize(string)
12
+ string.gsub(/[^\[\]+\-><\.]/, '')
13
+ end
14
+
15
+ def tokenize(instruction_chars)
16
+ instruction_chars.map do |c|
17
+ case c
18
+ when '+'
19
+ :v_incr
20
+ when '-'
21
+ :v_decr
22
+ when '>'
23
+ :p_incr
24
+ when '<'
25
+ :p_decr
26
+ when '.'
27
+ :print
28
+ when '['
29
+ :loop
30
+ when ']'
31
+ :end_loop
32
+ else
33
+ raise 'wtf?'
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,27 @@
1
+ module Brainclusterfuck
2
+ class Opcode
3
+ class ModifyPointer < Opcode
4
+ attr_reader :modify_by
5
+
6
+ def initialize(modify_by, cycles)
7
+ @modify_by = modify_by.to_i
8
+ @cycles = cycles.to_i
9
+ end
10
+
11
+ def ==(other)
12
+ other.is_a?(ModifyPointer) &&
13
+ other.modify_by == modify_by &&
14
+ other.cycles == cycles
15
+ end
16
+
17
+ def can_squeeze_with?(other)
18
+ other.is_a?(ModifyPointer)
19
+ end
20
+
21
+ def squeeze_with(other)
22
+ raise "Cannot squeeze: #{self}, #{other}" unless can_squeeze_with?(other)
23
+ ModifyPointer.new(modify_by + other.modify_by, cycles + other.cycles)
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ module Brainclusterfuck
2
+ class Opcode
3
+ class ModifyValue < Opcode
4
+ attr_reader :modify_by
5
+
6
+ def initialize(modify_by, cycles)
7
+ @modify_by = modify_by.to_i
8
+ @cycles = cycles.to_i
9
+ end
10
+
11
+ def ==(other)
12
+ other.is_a?(ModifyValue) &&
13
+ other.modify_by == modify_by &&
14
+ other.cycles == cycles
15
+ end
16
+
17
+ def can_squeeze_with?(other)
18
+ other.is_a?(ModifyValue)
19
+ end
20
+
21
+ def squeeze_with(other)
22
+ raise "Cannot squeeze: #{self}, #{other}" unless can_squeeze_with?(other)
23
+ ModifyValue.new(modify_by + other.modify_by, cycles + other.cycles)
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,13 @@
1
+ module Brainclusterfuck
2
+ class Opcode
3
+ class Print < Opcode
4
+ def initialize
5
+ @cycles = 1
6
+ end
7
+
8
+ def ==(other)
9
+ other.is_a?(Print)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ require 'brainclusterfuck/opcode/modify_value'
2
+
3
+ module Brainclusterfuck
4
+ class Opcode
5
+ attr_reader :cycles
6
+
7
+ def can_squeeze_with?(other)
8
+ false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ module Brainclusterfuck
2
+ class Terminal
3
+ attr_reader :text
4
+
5
+ def initialize
6
+ @text = ''
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module Brainclusterfuck
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,11 @@
1
+ module Brainclusterfuck
2
+ class VM
3
+ attr_reader :instructions, :cells, :terminal
4
+
5
+ def initialize(opts)
6
+ @instructions = opts.fetch(:instructions)
7
+ @cells = opts.fetch(:cells)
8
+ @terminal = opts.fetch(:terminal)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ require "brainclusterfuck/version"
2
+
3
+ module Brainclusterfuck
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/cells'
3
+
4
+ describe Brainclusterfuck::Cells do
5
+ it 'initializes with a size' do
6
+ expect(Brainclusterfuck::Cells.new(5).size).to eq(5)
7
+ end
8
+ end
@@ -0,0 +1,58 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/compiler'
3
+ require 'brainclusterfuck/opcode'
4
+
5
+ describe Brainclusterfuck::Compiler do
6
+ it 'raises if there are no tokens' do
7
+ expect { Brainclusterfuck::Compiler.new([]) }.to raise_error
8
+ end
9
+
10
+ it 'converts tokens to the correct operations' do
11
+ compiler = Brainclusterfuck::Compiler.new([:v_incr, :p_incr, :v_decr, :p_decr])
12
+ expect(compiler.bytecode).to eq([
13
+ Brainclusterfuck::Opcode::ModifyValue.new(1, 1),
14
+ Brainclusterfuck::Opcode::ModifyPointer.new(1, 1),
15
+ Brainclusterfuck::Opcode::ModifyValue.new(-1, 1),
16
+ Brainclusterfuck::Opcode::ModifyPointer.new(-1, 1)
17
+ ])
18
+ end
19
+
20
+ describe '#squeeze_operations' do
21
+ it 'compresses the incr/decr operations' do
22
+ tokens = (Array.new(8) { :v_incr }).concat(Array.new(3) { :p_decr })
23
+ compiler = Brainclusterfuck::Compiler.new(tokens)
24
+ compiler.squeeze_operations!
25
+
26
+ expect(compiler.bytecode).to eq([
27
+ Brainclusterfuck::Opcode::ModifyValue.new(8, 8),
28
+ Brainclusterfuck::Opcode::ModifyPointer.new(-3, 3)
29
+ ])
30
+ end
31
+
32
+ it 'correctly retains cycles' do
33
+ tokens = (Array.new(3) { :v_incr }).
34
+ concat([:v_decr]).
35
+ concat(Array.new(6) { :p_decr }).
36
+ concat(Array.new(2) { :p_incr })
37
+
38
+ compiler = Brainclusterfuck::Compiler.new(tokens)
39
+ compiler.squeeze_operations!
40
+
41
+ expect(compiler.bytecode).to eq([
42
+ Brainclusterfuck::Opcode::ModifyValue.new(2, 4),
43
+ Brainclusterfuck::Opcode::ModifyPointer.new(-4, 8)
44
+ ])
45
+ end
46
+
47
+ it 'does not squeeze prints' do
48
+ compiler = Brainclusterfuck::Compiler.new(Array.new(3) { :print })
49
+ compiler.squeeze_operations!
50
+
51
+ expect(compiler.bytecode).to eq([
52
+ Brainclusterfuck::Opcode::Print.new,
53
+ Brainclusterfuck::Opcode::Print.new,
54
+ Brainclusterfuck::Opcode::Print.new
55
+ ])
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/lexer'
3
+ require 'set'
4
+
5
+ describe Brainclusterfuck::Lexer do
6
+ describe '#instruction_chars' do
7
+ it 'strips out everything except the valid brainfuck instructions and keeps the order' do
8
+ all_ascii_chars = (0..255).map { |n| n.chr }.join('')
9
+
10
+ lexer = Brainclusterfuck::Lexer.new(all_ascii_chars)
11
+
12
+ ordered_valid_chars = %w([ ] + - > < .).sort_by { |c| c.ord }
13
+ expect(lexer.instruction_chars).to eq(ordered_valid_chars)
14
+ end
15
+ end
16
+
17
+ describe '#tokens' do
18
+ it 'tokenizes the input correctly' do
19
+ # and doesn't validate the input
20
+ lexer = Brainclusterfuck::Lexer.new('+>][<-.')
21
+ expect(lexer.tokens).to eq([
22
+ :v_incr,
23
+ :p_incr,
24
+ :end_loop,
25
+ :loop,
26
+ :p_decr,
27
+ :v_decr,
28
+ :print
29
+ ])
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/opcode/modify_pointer'
3
+
4
+ describe Brainclusterfuck::Opcode::ModifyPointer do
5
+ it 'stores the modify by and cycle count' do
6
+ op = described_class.new(5, 8)
7
+
8
+ expect(op.modify_by).to eq(5)
9
+ expect(op.cycles).to eq(8)
10
+ end
11
+
12
+ it 'has correct equality behavior' do
13
+ expect(described_class.new(1, 2)).to eq(described_class.new(1, 2))
14
+ expect(described_class.new(1, 2)).not_to eq(described_class.new(1, 3))
15
+ end
16
+
17
+ describe 'squeezing' do
18
+ it 'can squeeze with another ModifyPointer' do
19
+ op1 = described_class.new(1, 1)
20
+ op2 = described_class.new(1, 1)
21
+
22
+ expect(op1.can_squeeze_with?(op2)).to eq(true)
23
+ expect(op1.squeeze_with(op2)).to eq(described_class.new(2, 2))
24
+ end
25
+
26
+ it 'cannot squeeze with a generic opcode' do
27
+ op = described_class.new(1, 1)
28
+ expect(op.can_squeeze_with?(Brainclusterfuck::Opcode.new)).to eq(false)
29
+ end
30
+
31
+ it 'raises if trying to squeeze with an incompatible object' do
32
+ op = described_class.new(1, 1)
33
+
34
+ expect { op.squeeze_with(Brainclusterfuck::Opcode.new) }.to raise_error
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/opcode/modify_value'
3
+
4
+ describe Brainclusterfuck::Opcode::ModifyValue do
5
+ it 'stores the modify by and cycle count' do
6
+ op = described_class.new(5, 8)
7
+
8
+ expect(op.modify_by).to eq(5)
9
+ expect(op.cycles).to eq(8)
10
+ end
11
+
12
+ it 'has correct equality behavior' do
13
+ expect(described_class.new(1, 2)).to eq(described_class.new(1, 2))
14
+ expect(described_class.new(1, 2)).not_to eq(described_class.new(1, 3))
15
+ end
16
+
17
+ describe 'squeezing' do
18
+ it 'can squeeze with another ModifyValue' do
19
+ op1 = described_class.new(1, 1)
20
+ op2 = described_class.new(1, 1)
21
+
22
+ expect(op1.can_squeeze_with?(op2)).to eq(true)
23
+ expect(op1.squeeze_with(op2)).to eq(described_class.new(2, 2))
24
+ end
25
+
26
+ it 'cannot squeeze with a generic opcode' do
27
+ op = described_class.new(1, 1)
28
+ expect(op.can_squeeze_with?(Brainclusterfuck::Opcode.new)).to eq(false)
29
+ end
30
+
31
+ it 'raises if trying to squeeze with an incompatible object' do
32
+ op = described_class.new(1, 1)
33
+
34
+ expect { op.squeeze_with(Brainclusterfuck::Opcode.new) }.to raise_error
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/opcode/print'
3
+
4
+ describe Brainclusterfuck::Opcode::Print do
5
+ it 'has 1 cycle' do
6
+ expect(described_class.new.cycles).to eq(1)
7
+ end
8
+
9
+ it 'has correct equality behavior' do
10
+ expect(described_class.new).to eq(described_class.new)
11
+ expect(described_class.new).not_to eq(Brainclusterfuck::Opcode.new)
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/opcode'
3
+
4
+ describe Brainclusterfuck::Opcode do
5
+ describe '#can_squeeze_with?' do
6
+ it 'is false' do
7
+ expect(described_class.new.can_squeeze_with?(described_class.new)).to eq(false)
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck'
3
+
4
+ describe Brainclusterfuck do
5
+ it 'has a version number' do
6
+ expect(Brainclusterfuck::VERSION).not_to be_nil
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+
3
+ require 'rspec'
4
+
5
+ RSpec.configure do |config|
6
+ config.expect_with :rspec do |c|
7
+ c.syntax = :expect
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/terminal'
3
+
4
+ describe Brainclusterfuck::Terminal do
5
+ it 'starts with empty text' do
6
+ expect(Brainclusterfuck::Terminal.new.text).to eq('')
7
+ end
8
+ end
data/spec/vm_spec.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+ require 'brainclusterfuck/vm'
3
+
4
+ describe Brainclusterfuck::VM do
5
+ let(:instructions) { double(:instructions) }
6
+ let(:cells) { double(:cells) }
7
+ let(:terminal) { double(:terminal) }
8
+
9
+ let(:vm) do
10
+ Brainclusterfuck::VM.new(
11
+ instructions: instructions,
12
+ cells: cells,
13
+ terminal: terminal
14
+ )
15
+ end
16
+
17
+ it 'correctly reads from its option hash' do
18
+ expect(vm.instructions).to eq(instructions)
19
+ expect(vm.cells).to eq(cells)
20
+ expect(vm.terminal).to eq(terminal)
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,134 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: brainclusterfuck
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mark Rushakoff
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '2.13'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.13'
62
+ description: Provides a clean interface to arrays of Brainfuck VMs, primarily to use
63
+ for asynchronous processing.
64
+ email:
65
+ - mark.rushakoff@gmail.com
66
+ executables: []
67
+ extensions: []
68
+ extra_rdoc_files: []
69
+ files:
70
+ - .gitignore
71
+ - Gemfile
72
+ - LICENSE.mit
73
+ - README.md
74
+ - Rakefile
75
+ - brainclusterfuck.gemspec
76
+ - lib/brainclusterfuck.rb
77
+ - lib/brainclusterfuck/cells.rb
78
+ - lib/brainclusterfuck/compiler.rb
79
+ - lib/brainclusterfuck/lexer.rb
80
+ - lib/brainclusterfuck/opcode.rb
81
+ - lib/brainclusterfuck/opcode/modify_pointer.rb
82
+ - lib/brainclusterfuck/opcode/modify_value.rb
83
+ - lib/brainclusterfuck/opcode/print.rb
84
+ - lib/brainclusterfuck/terminal.rb
85
+ - lib/brainclusterfuck/version.rb
86
+ - lib/brainclusterfuck/vm.rb
87
+ - spec/cells_spec.rb
88
+ - spec/compiler_spec.rb
89
+ - spec/lexer_spec.rb
90
+ - spec/opcode/modify_pointer_spec.rb
91
+ - spec/opcode/modify_value_spec.rb
92
+ - spec/opcode/print_spec.rb
93
+ - spec/opcode_spec.rb
94
+ - spec/should_not_spec.rb
95
+ - spec/spec_helper.rb
96
+ - spec/terminal_spec.rb
97
+ - spec/vm_spec.rb
98
+ homepage: http://github.com/mark-rushakoff/brainclusterfuck
99
+ licenses:
100
+ - MIT
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ! '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ requirements: []
118
+ rubyforge_project:
119
+ rubygems_version: 1.8.25
120
+ signing_key:
121
+ specification_version: 3
122
+ summary: Clean API to arrays of Brainfuck VMs
123
+ test_files:
124
+ - spec/cells_spec.rb
125
+ - spec/compiler_spec.rb
126
+ - spec/lexer_spec.rb
127
+ - spec/opcode/modify_pointer_spec.rb
128
+ - spec/opcode/modify_value_spec.rb
129
+ - spec/opcode/print_spec.rb
130
+ - spec/opcode_spec.rb
131
+ - spec/should_not_spec.rb
132
+ - spec/spec_helper.rb
133
+ - spec/terminal_spec.rb
134
+ - spec/vm_spec.rb