parser 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/parser.rb +1 -0
- data/lib/parser/meta.rb +26 -0
- data/lib/parser/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21f544e53eebc01259b5fdeaf66a71a9febae025
|
4
|
+
data.tar.gz: 12844da7fb6ed0d03fec4a8e4f2b02b82cdab036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65f4b3582acb2604619b577d5a9998975425cfbe10bc7c9eab58c5722ec10d6b266d9e3a52871736465e9366bade8a7be13645d7ac4ed801d2d2935a480b4a78
|
7
|
+
data.tar.gz: 88767c6a3dfc1a5ba2c4503cd01e41e2a368e90cdc31edd52a410aba4ba8a1a610b0a252a3e56ac69784ee02ef556e7f6c40af39009781a2ef6f89a96cee035d
|
data/CHANGELOG.md
CHANGED
data/lib/parser.rb
CHANGED
data/lib/parser/meta.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
module Parser
|
2
|
+
# Parser metadata
|
3
|
+
module Meta
|
4
|
+
|
5
|
+
# Nodes parser produces combined for 1.8 1.9 and 2.0 state of 2.1 specific nodes is unknown.
|
6
|
+
NODE_TYPES =
|
7
|
+
%w(
|
8
|
+
true false nil int float str dstr str
|
9
|
+
sym dsym xstr regopt regexp array splat
|
10
|
+
array pair kwsplat hash irange erange self
|
11
|
+
lvar ivar cvar gvar const defined? lvasgn
|
12
|
+
ivasgn cvasgn gvasgn casgn mlhs masgn op_asgn
|
13
|
+
op_asgn and_asgn ensure rescue arg_expr
|
14
|
+
or_asgn and_asgn or_asgn back_ref nth_ref
|
15
|
+
match_with_lvasgn match_current_line
|
16
|
+
module class sclass def defs undef alias args
|
17
|
+
cbase arg optarg restarg blockarg block_pass args def kwarg kwoptarg
|
18
|
+
kwrestarg send super zsuper yield block send
|
19
|
+
and not or if when case while until while_post
|
20
|
+
until_post for break next redo return resbody
|
21
|
+
kwbegin begin retry preexe postexe iflipflop eflipflop
|
22
|
+
shadowarg
|
23
|
+
).map(&:to_sym).to_set.freeze
|
24
|
+
|
25
|
+
end # Meta
|
26
|
+
end # Parser
|
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: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Zotov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -269,6 +269,7 @@ files:
|
|
269
269
|
- lib/parser/lexer/literal.rb
|
270
270
|
- lib/parser/lexer/stack_state.rb
|
271
271
|
- lib/parser/messages.rb
|
272
|
+
- lib/parser/meta.rb
|
272
273
|
- lib/parser/rewriter.rb
|
273
274
|
- lib/parser/ruby18.y
|
274
275
|
- lib/parser/ruby19.y
|
@@ -344,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
344
345
|
version: '0'
|
345
346
|
requirements: []
|
346
347
|
rubyforge_project:
|
347
|
-
rubygems_version: 2.0.
|
348
|
+
rubygems_version: 2.0.14
|
348
349
|
signing_key:
|
349
350
|
specification_version: 4
|
350
351
|
summary: A Ruby parser written in pure Ruby.
|