loxxy 0.4.06 → 0.4.07

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0b12b86ba7c949cf712d97fed6691b087f97284e3580124680b773df3be5347
4
- data.tar.gz: f19231c3e1372525e418fd155f23f71ef84c5fbcb9283eeef11709d4a321408f
3
+ metadata.gz: 7cd3e438270c62a4863cddfd1b737182993ea205d84985e8862a25c74bb2e8c4
4
+ data.tar.gz: f6bd428ebc505e238392cbb04e5fb1207eb34752f974ae8f81a23798e4ef51b5
5
5
  SHA512:
6
- metadata.gz: d0f0829b465d2ffb3cd7f287efb9a069ae0c94ddc95f89790f6e1f1d6519aed4dfccb5359d95130afff4cd69d70953983ef25f02f89529789f9bd2ca1bd18c9a
7
- data.tar.gz: 908ca8e78dbf30ff582a545d542b58b4080a98feab8a035582ea3dd09a5e2533f255cbc7bc531b143d21bd2b0a23d8ea3b0eed0b6007cc35eea005cfc564de61
6
+ metadata.gz: 77ac1d09cb77b8afab98c21bb2f8544fd2961473efd1acaae3134a2aba0ed7138270aa86f384fe2ce1f76d865c8cd049dc3b8379b954c70992cc53b068244593
7
+ data.tar.gz: 9fa0e0c3c3d96600bc4e8cd0447383a287be6ff483fb2a843056c87175239bc5fd319e0f11cfe8ab496652a773c91d91f8c05176275b07873f08ffad0de7a1f4
data/.rubocop.yml CHANGED
@@ -162,6 +162,9 @@ Lint/UnusedMethodArgument:
162
162
  Lint/UselessAccessModifier:
163
163
  Enabled: true
164
164
 
165
+ Lint/UselessRuby2Keywords: # new in 1.23
166
+ Enabled: true
167
+
165
168
  Lint/Void:
166
169
  Enabled: false
167
170
 
@@ -201,6 +204,9 @@ Metrics/ModuleLength:
201
204
  Metrics/PerceivedComplexity:
202
205
  Enabled: false
203
206
 
207
+ Naming/BlockForwarding: # new in 1.24
208
+ Enabled: true
209
+
204
210
  Naming/ConstantName:
205
211
  Enabled: false
206
212
 
@@ -427,6 +433,12 @@ Style/EndlessMethod:
427
433
  Style/ExplicitBlockArgument:
428
434
  Enabled: true
429
435
 
436
+ Style/FileRead: # new in 1.24
437
+ Enabled: true
438
+
439
+ Style/FileWrite: # new in 1.24
440
+ Enabled: true
441
+
430
442
  Style/GlobalStdStream:
431
443
  Enabled: true
432
444
 
@@ -438,12 +450,19 @@ Style/HashConversion:
438
450
 
439
451
  Style/HashLikeCase:
440
452
  Enabled: true
441
-
453
+
442
454
  Style/IfWithBooleanLiteralBranches:
443
455
  Enabled: true
456
+
457
+ Style/MapToHash: # new in 1.24
458
+ Enabled: true
459
+
460
+ Style/OpenStructUse: # new in 1.23
461
+ Enabled: true
444
462
 
445
463
  Style/OptionalBooleanParameter:
446
464
  Enabled: true
465
+
447
466
 
448
467
  Style/RedundantAssignment:
449
468
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [0.4.07] - 2022-11-21
2
+ - Minor fixes; dependency towards Rubies 3+ allowed...
3
+
4
+ ### Fixed
5
+ - File `loxxy.gemspec` dependency on Ruby version relaxed to support Ruby 3+
6
+ - File `resolver.rb` Fixed a typo in standard Lox error message.
7
+ - File `collide_with_paramaeter.lox` Fixed typo in error message.
8
+ - File `duplicate_local.lox` Fixed typo in error message.
9
+ - File `duplicate_parameter.lox` Fixed typo in error message.
10
+
11
+
1
12
  ## [0.4.06] - 2021-11-01
2
13
  - Code update to cope with `Rley` v.0.8.08 changes
3
14
 
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020-2021 Dimitri Geshef
3
+ Copyright (c) 2020-2022 Dimitri Geshef
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -220,7 +220,7 @@ module Loxxy
220
220
  curr_scope = scopes.last
221
221
  # Oddly enough, Lox allows variable re-declaration at top-level
222
222
  if curr_scope.include?(aVarName)
223
- msg = "Error at '#{aVarName}': Already variable with this name in this scope."
223
+ msg = "Error at '#{aVarName}': Already a variable with this name in this scope."
224
224
  raise Loxxy::RuntimeError, msg
225
225
  elsif curr_scope.size == 255 && current_function != :none
226
226
  msg = "Error at '#{aVarName}': Too many local variables in function."
@@ -5,7 +5,7 @@ require 'rley' # Load the gem
5
5
  module Loxxy
6
6
  module FrontEnd
7
7
  ########################################
8
- # Grammar for Lox language
8
+ # Grammar for the Lox language
9
9
  # Authoritative grammar at:
10
10
  # https://craftinginterpreters.com/appendix-i.html
11
11
  builder = Rley::grammar_builder do
data/lib/loxxy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Loxxy
4
- VERSION = '0.4.06'
4
+ VERSION = '0.4.07'
5
5
  end
data/loxxy.gemspec CHANGED
@@ -48,7 +48,7 @@ Gem::Specification.new do |spec|
48
48
  DESCR_END
49
49
  spec.homepage = 'https://github.com/famished-tiger/loxxy'
50
50
  spec.license = 'MIT'
51
- spec.required_ruby_version = '~> 2.5'
51
+ spec.required_ruby_version = '>= 2.5'
52
52
 
53
53
  spec.bindir = 'bin'
54
54
  spec.executables = ['loxxy']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loxxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.06
4
+ version: 0.4.07
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Geshef
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-01 00:00:00.000000000 Z
11
+ date: 2022-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rley
@@ -170,7 +170,7 @@ require_paths:
170
170
  - lib
171
171
  required_ruby_version: !ruby/object:Gem::Requirement
172
172
  requirements:
173
- - - "~>"
173
+ - - ">="
174
174
  - !ruby/object:Gem::Version
175
175
  version: '2.5'
176
176
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.1.4
182
+ rubygems_version: 3.3.3
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: An implementation of the Lox programming language.