parser 3.2.2.4 → 3.3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parser/builders/default.rb +18 -1
- data/lib/parser/current.rb +4 -4
- data/lib/parser/lexer/literal.rb +15 -1
- data/lib/parser/lexer-F0.rb +295 -243
- data/lib/parser/lexer-F1.rb +444 -383
- data/lib/parser/macruby.rb +2 -2
- data/lib/parser/messages.rb +46 -41
- data/lib/parser/ruby18.rb +2 -2
- data/lib/parser/ruby19.rb +2 -2
- data/lib/parser/ruby20.rb +2 -2
- data/lib/parser/ruby21.rb +2 -2
- data/lib/parser/ruby22.rb +2 -2
- data/lib/parser/ruby23.rb +2 -2
- data/lib/parser/ruby24.rb +2 -2
- data/lib/parser/ruby25.rb +2 -2
- data/lib/parser/ruby26.rb +2 -2
- data/lib/parser/ruby27.rb +2 -2
- data/lib/parser/ruby30.rb +2 -2
- data/lib/parser/ruby31.rb +2 -2
- data/lib/parser/ruby32.rb +2 -2
- data/lib/parser/ruby33.rb +6782 -6897
- data/lib/parser/rubymotion.rb +2 -2
- data/lib/parser/static_environment.rb +12 -0
- data/lib/parser/version.rb +1 -1
- metadata +6 -6
data/lib/parser/rubymotion.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
|
2
2
|
#
|
3
3
|
# DO NOT MODIFY!!!!
|
4
|
-
# This file is automatically generated by Racc 1.7.
|
5
|
-
# from Racc grammar file "".
|
4
|
+
# This file is automatically generated by Racc 1.7.3
|
5
|
+
# from Racc grammar file "rubymotion.y".
|
6
6
|
#
|
7
7
|
|
8
8
|
require 'racc/parser.rb'
|
@@ -63,6 +63,10 @@ module Parser
|
|
63
63
|
declared?(ANONYMOUS_BLOCKARG)
|
64
64
|
end
|
65
65
|
|
66
|
+
def parent_has_anonymous_blockarg?
|
67
|
+
@stack.any? { |variables| variables.include?(ANONYMOUS_BLOCKARG) }
|
68
|
+
end
|
69
|
+
|
66
70
|
def declare_anonymous_restarg
|
67
71
|
declare(ANONYMOUS_RESTARG)
|
68
72
|
end
|
@@ -71,6 +75,10 @@ module Parser
|
|
71
75
|
declared?(ANONYMOUS_RESTARG)
|
72
76
|
end
|
73
77
|
|
78
|
+
def parent_has_anonymous_restarg?
|
79
|
+
@stack.any? { |variables| variables.include?(ANONYMOUS_RESTARG) }
|
80
|
+
end
|
81
|
+
|
74
82
|
def declare_anonymous_kwrestarg
|
75
83
|
declare(ANONYMOUS_KWRESTARG)
|
76
84
|
end
|
@@ -79,6 +87,10 @@ module Parser
|
|
79
87
|
declared?(ANONYMOUS_KWRESTARG)
|
80
88
|
end
|
81
89
|
|
90
|
+
def parent_has_anonymous_kwrestarg?
|
91
|
+
@stack.any? { |variables| variables.include?(ANONYMOUS_KWRESTARG) }
|
92
|
+
end
|
93
|
+
|
82
94
|
def empty?
|
83
95
|
@stack.empty?
|
84
96
|
end
|
data/lib/parser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- whitequark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -249,9 +249,9 @@ licenses:
|
|
249
249
|
- MIT
|
250
250
|
metadata:
|
251
251
|
bug_tracker_uri: https://github.com/whitequark/parser/issues
|
252
|
-
changelog_uri: https://github.com/whitequark/parser/blob/v3.
|
253
|
-
documentation_uri: https://www.rubydoc.info/gems/parser/3.
|
254
|
-
source_code_uri: https://github.com/whitequark/parser/tree/v3.
|
252
|
+
changelog_uri: https://github.com/whitequark/parser/blob/v3.3.0.0/CHANGELOG.md
|
253
|
+
documentation_uri: https://www.rubydoc.info/gems/parser/3.3.0.0
|
254
|
+
source_code_uri: https://github.com/whitequark/parser/tree/v3.3.0.0
|
255
255
|
post_install_message:
|
256
256
|
rdoc_options: []
|
257
257
|
require_paths:
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
267
|
- !ruby/object:Gem::Version
|
268
268
|
version: '0'
|
269
269
|
requirements: []
|
270
|
-
rubygems_version: 3.
|
270
|
+
rubygems_version: 3.5.3
|
271
271
|
signing_key:
|
272
272
|
specification_version: 4
|
273
273
|
summary: A Ruby parser written in pure Ruby.
|