treetop 1.6.4 → 1.6.5

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: 878553cd15b565fe0870a25ed59524505e0975ad
4
- data.tar.gz: 675a16b030e58bca7d0e9be6b535fb589ae00112
3
+ metadata.gz: 31803050a59c177ca4e26b9ba24396bfc169ec46
4
+ data.tar.gz: aa85232de5ed5dcb4368c9f8943dcb62b9068a97
5
5
  SHA512:
6
- metadata.gz: baf09fe0f27df12b8281c9d6f6fd4c7b443013cc77ea8aa1de3f2c5ebc8d97f644fa3a56b1e2671be0d3427789188c368efb9f915c1887bcd9d2376e50dcea6e
7
- data.tar.gz: 3eed17051de65ee68f0e73f009f7cd391acbffb515bfe07f4b3634b0cd79003a89dba40d4d18602dbc4fe265aca5c77aaac861db6ee788776259fefa9664a8fc
6
+ metadata.gz: b11615a2b1020389b4c836d7bec5faa91b194a73d917ec14dd366c49330e13a1e1a14886f6e0c1042fa1752c97a5fa3b9e19d9687a54bdd01f932b9cbed594ca
7
+ data.tar.gz: 7bbe7339b97970098e054457f189e0504cabeeef1c1c1c1d8fbb03a99a517eb472221c02fd271b364fdefebfb25eb9da72c5ea63f77777edd0a0843dd7ca4b50
@@ -1369,6 +1369,7 @@ module Treetop
1369
1369
 
1370
1370
  r0 = _nt_labeled_sequence_primary
1371
1371
  r0.extend(LabeledExpressionSequenceBody0)
1372
+ r0.extend(LabeledExpressionSequenceBody0)
1372
1373
 
1373
1374
  node_cache[:labeled_expression_sequence_body][start_index] = r0
1374
1375
 
@@ -1480,7 +1481,7 @@ module Treetop
1480
1481
 
1481
1482
  module Primary5
1482
1483
  def compile(address, builder, parent_expression=nil)
1483
- STDERR.puts "Extraneous module ignored after suffix: #{input[interval].inspect}" if node_class_declarations.inline_modules.size > 0 && atomic.inline_modules.size > 0
1484
+ # STDERR.puts "Extraneous module ignored after suffix: #{input[interval].inspect}" if node_class_declarations.inline_modules.size > 0 && atomic.inline_modules.size > 0
1484
1485
  suffix.compile(address, builder, self)
1485
1486
  end
1486
1487
 
@@ -188,7 +188,7 @@ module Treetop
188
188
  /
189
189
  atomic suffix node_class_declarations {
190
190
  def compile(address, builder, parent_expression=nil)
191
- STDERR.puts "Extraneous module ignored after suffix: #{input[interval].inspect}" if node_class_declarations.inline_modules.size > 0 && atomic.inline_modules.size > 0
191
+ # STDERR.puts "Extraneous module ignored after suffix: #{input[interval].inspect}" if node_class_declarations.inline_modules.size > 0 && atomic.inline_modules.size > 0
192
192
  suffix.compile(address, builder, self)
193
193
  end
194
194
 
@@ -2,7 +2,7 @@ module Treetop #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 6
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/spec/spec_helper.rb CHANGED
@@ -12,6 +12,8 @@ module Treetop
12
12
  module ExampleGroupInstanceMethods
13
13
  module ClassMethods
14
14
  attr_accessor :parser_class_under_test
15
+ attr_accessor :parser_text
16
+ attr_accessor :parser_code
15
17
 
16
18
  def testing_expression(expression_under_test)
17
19
  testing_grammar(%{
@@ -24,9 +26,10 @@ module Treetop
24
26
  end
25
27
 
26
28
  def testing_grammar(grammar_under_test)
29
+ self.parser_text = grammar_under_test
27
30
  grammar_node = parse_with_metagrammar(grammar_under_test.strip, :module_or_grammar)
28
- parser_code = grammar_node.compile
29
- class_eval(parser_code)
31
+ self.parser_code = grammar_node.compile
32
+ class_eval(self.parser_code)
30
33
  self.parser_class_under_test = class_eval(grammar_node.parser_name)
31
34
  end
32
35
 
data/treetop.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: treetop 1.6.4 ruby lib
5
+ # stub: treetop 1.6.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "treetop"
9
- s.version = "1.6.4"
9
+ s.version = "1.6.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Nathan Sobo", "Clifford Heath"]
14
- s.date = "2016-02-21"
14
+ s.date = "2016-02-25"
15
15
  s.description = "A Parsing Expression Grammar (PEG) Parser generator DSL for Ruby"
16
16
  s.email = "cliffordheath@gmail.com"
17
17
  s.executables = ["tt"]
@@ -139,7 +139,7 @@ Gem::Specification.new do |s|
139
139
  ]
140
140
  s.homepage = "https://github.com/cjheath/treetop"
141
141
  s.licenses = ["MIT"]
142
- s.rubygems_version = "2.2.2"
142
+ s.rubygems_version = "2.4.5"
143
143
  s.summary = "A Ruby-based text parsing and interpretation DSL"
144
144
 
145
145
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treetop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Sobo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-21 00:00:00.000000000 Z
12
+ date: 2016-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: polyglot
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  version: '0'
255
255
  requirements: []
256
256
  rubyforge_project:
257
- rubygems_version: 2.2.2
257
+ rubygems_version: 2.4.5
258
258
  signing_key:
259
259
  specification_version: 4
260
260
  summary: A Ruby-based text parsing and interpretation DSL