alphalang 0.1.8 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9264317b60fae6805130ff9692189ba73bf08530c025d8a732c0c520b19a466
4
- data.tar.gz: e7bff4ae6de5fbade8cbc6b0a779ddd06259fad639b3650239fbb5f39d0adff9
3
+ metadata.gz: 44fd88ede5758ca9cad4bf1e8d5394ebd646c649598ab90f52bbfbdca03c8e62
4
+ data.tar.gz: cc2e1e9171b0f44710209cbd615329e7b11e48f0284698756676b252064c4bcd
5
5
  SHA512:
6
- metadata.gz: 9c8f5078f5f91b224847c2c43134e84fb053d3ba6b5eb456104ae7a4f0f267009ee78077fc8e338e1bb5002616d16627491469df240492f045546b20d4a18c5a
7
- data.tar.gz: daf389f2da9e82cd86a921639b5d8843ef4c45b33ef294d2c93a3281d64dfb0d6674c36f16aac04e76ef2f75c160865554e8325e57bb3c5864462a4739fc9f4f
6
+ metadata.gz: 96185e4bde6addbb9030fb753f54baa3cde93d7c7fa3130f528a6c5acd8bfdb765c973d853f4d96bd6df627d8fe1f19a1208c82da8dd1ecb951897d0badfd2bb
7
+ data.tar.gz: 42da0f37236a78bf55a046879fa0a639cfdb8854104ae6341f31572918ce358173067887b0c0d1ede02c7b7ba6b0d5283f60f76c5c02b9ab075a423fc1104c4d
@@ -181,6 +181,10 @@ class ArrayNode < Node
181
181
  @value[index] = value
182
182
  end
183
183
 
184
+ def size
185
+ @value.size
186
+ end
187
+
184
188
  def each
185
189
  @value.each_with_index do |val, index|
186
190
  yield val, index
data/lib/rdparse.rb CHANGED
@@ -234,7 +234,8 @@ class Parser
234
234
  translated_problematic_token = @token_list[problematic_token]
235
235
 
236
236
  if translated_problematic_token.is_a?(NilClass)
237
- raise ParseError, "Faulty expression likely between two '#{@token_list['end']}' tokens."
237
+ puts "The problem is #{before_problem}#{problematic_token}#{after_problem}"
238
+ raise ParseError, "Faulty expression, this is not completely implemented."
238
239
  end
239
240
 
240
241
  index = 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alphalang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mattias, victor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: '0'
92
+ version: 3.0.2
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - ">="