rbrainfuck 0.0.1.pre.alpha.pre.6 → 0.0.1.pre.alpha.pre.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +20 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NTk2NWUxNzc0NjYwOGNmNjk0NjFlOTg4NmE5YTBlZTNhYzU2NjQ0YQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YWU0ZDdjNTBlMTA3NDFiNjEzMTExNjBjZDIwNjk4MTY5NzUyNjdlMQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ODlkOTBiMjNlNjdlY2M4ODI0NmZlNDlmNDczNTY0YmEzMDU3MWQ2MDIwMGNl
|
|
10
|
+
NjlkYWI3ZWQzYWU0ZTIwZTU1Y2RkMzkwY2QxMGNlNDg0OTcxNjc5MWJiNGQ5
|
|
11
|
+
ODgzNmFlYTYxNmViZmJkYzYwM2NjMDVlMTYzMDhjMDVmMTk1OWQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YzU5ZWIwMzI5ZjU1NzRjZDdhNzQwYzIyZTBjNGI4MTE3Yzk0NjY1MDkxYmMw
|
|
14
|
+
NmI2MzRlZjVkOTc5NGRmZDA3N2M1OWM1OGExMTQ2MDJlMTJlODFmY2Q0ZmM3
|
|
15
|
+
M2FiNjNhYjM0OTNjNjkyMjc0MWRlNDFkMDJiOTRhM2QyNzcwMzU=
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://travis-ci.org/maxmouchet/rbrainfuck)
|
|
3
3
|
[](https://codeclimate.com/github/maxmouchet/rbrainfuck)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A Brainfuck interpreter. Use it as a command-line app, or embed it in you Ruby program.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -10,17 +10,31 @@ Add this line to your application's Gemfile:
|
|
|
10
10
|
|
|
11
11
|
gem 'rbrainfuck'
|
|
12
12
|
|
|
13
|
-
And then execute:
|
|
14
|
-
|
|
15
|
-
$ bundle
|
|
16
|
-
|
|
17
13
|
Or install it yourself as:
|
|
18
14
|
|
|
19
15
|
$ gem install rbrainfuck
|
|
20
16
|
|
|
21
17
|
## Usage
|
|
22
18
|
|
|
23
|
-
|
|
19
|
+
### CLI
|
|
20
|
+
|
|
21
|
+
$ rbrainfuck file.b
|
|
22
|
+
|
|
23
|
+
### API
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'rbrainfuck'
|
|
27
|
+
|
|
28
|
+
# Create an interpreter with 30000 cells.
|
|
29
|
+
bf = Rbrainfuck::Interpreter.new(30000)
|
|
30
|
+
|
|
31
|
+
# Load some code.
|
|
32
|
+
bf.load('++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.')
|
|
33
|
+
|
|
34
|
+
# Run it.
|
|
35
|
+
bf.run
|
|
36
|
+
```
|
|
37
|
+
|
|
24
38
|
|
|
25
39
|
## Contributing
|
|
26
40
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbrainfuck
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.1.pre.alpha.pre.
|
|
4
|
+
version: 0.0.1.pre.alpha.pre.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maxime Mouchet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-12-
|
|
11
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|