alphalang 0.1.8 → 0.1.9

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: 8aa1abd7f6b12ba6f941ca7e7baeca95c13b5c962304e903fe997d905f2b8378
4
+ data.tar.gz: 1a5a6287eb251f45c3185d617bf0b9d25a5490b85bd0e982e7486bead31aeeea
5
5
  SHA512:
6
- metadata.gz: 9c8f5078f5f91b224847c2c43134e84fb053d3ba6b5eb456104ae7a4f0f267009ee78077fc8e338e1bb5002616d16627491469df240492f045546b20d4a18c5a
7
- data.tar.gz: daf389f2da9e82cd86a921639b5d8843ef4c45b33ef294d2c93a3281d64dfb0d6674c36f16aac04e76ef2f75c160865554e8325e57bb3c5864462a4739fc9f4f
6
+ metadata.gz: 9463287f66570dd95d2d9b22268c420611c51d969c45d4cd6ac079e03968cdd1bdab473fd6b56a455d780d8e2d2475e6534b97f1ff9fd3ad8c683241be7ff9f1
7
+ data.tar.gz: 066ec1444b64853a07bce2f2a6b0acc296c8555e48c86589f8fe8de3d52da0e93869fb689c23e1394a7e10a6e2e08c432c2e5649f22ea451219a48edd2fb3cfe
@@ -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.1.9
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
  - - ">="