rbrainfuck 0.0.1.pre.alpha.pre.7 → 0.0.1.pre.alpha.pre.8
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/.watsonrc +35 -0
- data/lib/rbrainfuck/interpreter.rb +3 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzEyYjE3MjAzZGMzMGE0MmFlNDk0ZGI4NGM2NDY5MzZkYzQyOThkYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGQ0ODRmOGY0YWI3MzZmMjA5MWEwM2M1ZjkxZTkxYjZmYjljZTg3ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Zjc5ZGNjODRiYWNkN2RlMjY3YTYyN2YzOGVmYTQxYzVmZDRiMDQ0NTU2ZWNm
|
10
|
+
OTZhNGVkNDc4YTIxODdkNGQxMGMzOGQ5YzI2YjNmNTNkMWU1YTc4NGQ4NDc1
|
11
|
+
ZTg5YmYxOWFjMGNkZTc2MjA5NWE5MTk5ODkzNDI4Yzg0ODk5YjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjZhZTE4MDhlYmY3ZGE5M2EyOTVmYTEyODFjNmZmZTY0YWZkZWUxYjcyZWM0
|
14
|
+
YzBiZjc5NzY0ZTE5OWNmNGRkNGIwODJjMWVkNjRiNWU3YTMyYTBhM2FmMjY2
|
15
|
+
OGY4MDgxMTJkNGRkNjNkOWRjMzg0NjhlMDYzOGMwMzg4ZWYzMDQ=
|
data/.watsonrc
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# watson rc
|
2
|
+
# watson - inline issue manager
|
3
|
+
# [goosecode] labs
|
4
|
+
|
5
|
+
|
6
|
+
# Directories
|
7
|
+
[dirs]
|
8
|
+
./
|
9
|
+
|
10
|
+
|
11
|
+
# Tags
|
12
|
+
[tags]
|
13
|
+
fix
|
14
|
+
review
|
15
|
+
todo
|
16
|
+
|
17
|
+
|
18
|
+
# Ignores
|
19
|
+
[ignore]
|
20
|
+
.git
|
21
|
+
*.swp
|
22
|
+
|
23
|
+
|
24
|
+
[github_api]
|
25
|
+
aec7ce4997623e250b28a104e589d184108d649c
|
26
|
+
|
27
|
+
|
28
|
+
[github_repo]
|
29
|
+
maxmouchet/rbrainfuck
|
30
|
+
|
31
|
+
|
32
|
+
[github_endpoint]
|
33
|
+
https://api.github.com
|
34
|
+
|
35
|
+
|
@@ -3,6 +3,8 @@ require 'io/console'
|
|
3
3
|
module Rbrainfuck
|
4
4
|
class Interpreter
|
5
5
|
|
6
|
+
# [todo] - Allow to pass an array of options
|
7
|
+
# [todo] - Allow to specify in and out streams
|
6
8
|
def initialize(size)
|
7
9
|
@cells = []
|
8
10
|
@stack = []
|
@@ -27,6 +29,7 @@ module Rbrainfuck
|
|
27
29
|
interpret_char(@source[@position]) if Interpreter.allowed_chars.include?(@source[@position])
|
28
30
|
@position += 1
|
29
31
|
rescue Exception => e
|
32
|
+
# [todo] - Use a logger
|
30
33
|
puts "#{@position}:#{@source[@position]} (#{@pointer}:#{@cells[@pointer]}) (#{@nesting_level}) => #{e.message}"
|
31
34
|
exit
|
32
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxime Mouchet
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- .gitignore
|
64
64
|
- .rspec
|
65
65
|
- .travis.yml
|
66
|
+
- .watsonrc
|
66
67
|
- Gemfile
|
67
68
|
- LICENSE.txt
|
68
69
|
- README.md
|