loxxy 0.4.01 → 0.4.02
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 +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/loxxy/ast/ast_builder.rb +5 -5
- data/lib/loxxy/version.rb +1 -1
- data/loxxy.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5a4313b7377778f23e130f599cb4d28d43fd4ff3d56ec2c93c9b9636ac04743
|
|
4
|
+
data.tar.gz: 17f543465f55d0e83e2145973522da4230d7162d72f81d54ea957ac1522be412
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18ab688d47ee5d2b98ae1be44bba06740f9299d58b22cbe37b477d4a27624a0b7e3b0a761cde422993a8270d15df3c6113ee50876fb16b5d6a1b2d6e13ed4719
|
|
7
|
+
data.tar.gz: 5353f0cb4d853a15a3f5f156e19176d8c3e3a9e64bd186d53a9caec78edb4393e96b2be339634907bf2871a5a974f409d224b9de11a9940e24615fd2b55fb825
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [0.4.02] - 2021-09-10
|
|
2
|
+
- Fixes in`AST::AstBuilder` class to cope with changes inRley 0.8.03
|
|
3
|
+
|
|
4
|
+
### Changed
|
|
5
|
+
- File `loxxy.gemspec` forced dependency to Rley 0.8.03
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- Method `Ast::AstBuilder#reduce_class_naming` fixed access to `IDENTIFER` in (LESS IDENTIFER)?
|
|
9
|
+
- Method `Ast::AstBuilder#reduce_var_declaration` fixed access to `expression` in (EQUAL expression)?
|
|
10
|
+
- Method `Ast::AstBuilder#reduce_assign_expr`fixed access to `call` in (call DOT)?
|
|
11
|
+
- Method `Ast::AstBuilder#reduce_parameters`fixed access to `IDENTIFIER` in (COMMA IDENTIFIER)*
|
|
12
|
+
- Method `Ast::AstBuilder#reduce_arguments`fixed access to `expression` in (COMMA expression)*
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
## [0.4.01] - 2021-08-22
|
|
2
17
|
- Grammar and AST::AstBuilder adapted to take profit of extended grammar notiation in Rley 0.8.01
|
|
3
18
|
|
|
@@ -164,7 +164,7 @@ module Loxxy
|
|
|
164
164
|
if theChildren[1].nil?
|
|
165
165
|
super_var = nil
|
|
166
166
|
else
|
|
167
|
-
super_token = theChildren[1].
|
|
167
|
+
super_token = theChildren[1].last.token
|
|
168
168
|
super_var = LoxVariableExpr.new(super_token.position, super_token.lexeme)
|
|
169
169
|
end
|
|
170
170
|
[theChildren[0].token.lexeme, super_var]
|
|
@@ -188,7 +188,7 @@ module Loxxy
|
|
|
188
188
|
# rule('varDecl' => 'VAR IDENTIFIER (EQUAL expression)? SEMICOLON')
|
|
189
189
|
def reduce_var_declaration(_production, _range, tokens, theChildren)
|
|
190
190
|
var_name = theChildren[1].token.lexeme.dup
|
|
191
|
-
init_val = theChildren[2] ? theChildren[2].
|
|
191
|
+
init_val = theChildren[2] ? theChildren[2].last : nil
|
|
192
192
|
Ast::LoxVarStmt.new(tokens[1].position, var_name, init_val)
|
|
193
193
|
end
|
|
194
194
|
|
|
@@ -286,7 +286,7 @@ module Loxxy
|
|
|
286
286
|
def reduce_assign_expr(_production, _range, tokens, theChildren)
|
|
287
287
|
name_assignee = theChildren[1].token.lexeme.dup
|
|
288
288
|
if theChildren[0]
|
|
289
|
-
set_expr = Ast::LoxSetExpr.new(tokens[1].position, theChildren[0].
|
|
289
|
+
set_expr = Ast::LoxSetExpr.new(tokens[1].position, theChildren[0].first)
|
|
290
290
|
set_expr.property = name_assignee
|
|
291
291
|
set_expr.value = theChildren[3]
|
|
292
292
|
set_expr
|
|
@@ -393,7 +393,7 @@ module Loxxy
|
|
|
393
393
|
first_lexeme = theChildren[0].token.lexeme
|
|
394
394
|
return [first_lexeme] unless theChildren[1]
|
|
395
395
|
|
|
396
|
-
successors = theChildren[1].map { |seq_node| seq_node.
|
|
396
|
+
successors = theChildren[1].map { |seq_node| seq_node.last.token.lexeme }
|
|
397
397
|
successors.unshift(first_lexeme)
|
|
398
398
|
end
|
|
399
399
|
|
|
@@ -401,7 +401,7 @@ module Loxxy
|
|
|
401
401
|
def reduce_arguments(_production, _range, _tokens, theChildren)
|
|
402
402
|
return [theChildren[0]] unless theChildren[1]
|
|
403
403
|
|
|
404
|
-
successors = theChildren[1].map { |seq_node| seq_node.
|
|
404
|
+
successors = theChildren[1].map { |seq_node| seq_node.last }
|
|
405
405
|
successors.unshift(theChildren[0])
|
|
406
406
|
end
|
|
407
407
|
end # class
|
data/lib/loxxy/version.rb
CHANGED
data/loxxy.gemspec
CHANGED
|
@@ -58,7 +58,7 @@ Gem::Specification.new do |spec|
|
|
|
58
58
|
PkgExtending.pkg_documentation(spec)
|
|
59
59
|
|
|
60
60
|
# Runtime dependencies
|
|
61
|
-
spec.add_dependency 'rley', '~> 0.8.
|
|
61
|
+
spec.add_dependency 'rley', '~> 0.8.03'
|
|
62
62
|
|
|
63
63
|
# Development dependencies
|
|
64
64
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
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.
|
|
4
|
+
version: 0.4.02
|
|
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
|
+
date: 2021-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rley
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.8.
|
|
19
|
+
version: 0.8.03
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.8.
|
|
26
|
+
version: 0.8.03
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|