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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bba2ec073df00075ce10a7fab1964034be23dcf6
4
- data.tar.gz: 6cf53d4941550e6599ed47b9141a09fd00b43f8a
3
+ metadata.gz: 21f544e53eebc01259b5fdeaf66a71a9febae025
4
+ data.tar.gz: 12844da7fb6ed0d03fec4a8e4f2b02b82cdab036
5
5
  SHA512:
6
- metadata.gz: 563cdddc9e10b21b35432d386725ddc809c17f78a1098fb56bde5a05d8b4004f39ec466dd0979bcfefb659d81478978111776d180ce9e353fbb389555d5c45bc
7
- data.tar.gz: 66a7b6e8b06354163146c54d93f124598a65c673cf864012faeed3f3643ea68c2915b33de75055ea03c1d4e34ca1c41a1bf8c3ec329359c36f12e3f6d6812440
6
+ metadata.gz: 65f4b3582acb2604619b577d5a9998975425cfbe10bc7c9eab58c5722ec10d6b266d9e3a52871736465e9366bade8a7be13645d7ac4ed801d2d2935a480b4a78
7
+ data.tar.gz: 88767c6a3dfc1a5ba2c4503cd01e41e2a368e90cdc31edd52a410aba4ba8a1a610b0a252a3e56ac69784ee02ef556e7f6c40af39009781a2ef6f89a96cee035d
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v2.1.6 (2014-03-04)
5
+ -------------------
6
+
7
+ Features implemented:
8
+ * Add the list of all node types within Parser::Meta. (Markus Schirp)
9
+
4
10
  v2.1.5 (2014-02-24)
5
11
  -------------------
6
12
 
@@ -21,6 +21,7 @@ module Parser
21
21
  module AST
22
22
  require 'parser/ast/node'
23
23
  require 'parser/ast/processor'
24
+ require 'parser/meta'
24
25
  end
25
26
 
26
27
  module Source
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Parser
2
- VERSION = '2.1.5'
2
+ VERSION = '2.1.6'
3
3
  end
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.5
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-02-24 00:00:00.000000000 Z
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.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.