sexpr 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/CHANGELOG.md +16 -0
  2. data/Gemfile +3 -3
  3. data/Gemfile.lock +14 -14
  4. data/Rakefile +0 -4
  5. data/examples/bool_expr/bool_expr.rb +1 -95
  6. data/lib/sexpr/grammar/matching.rb +3 -3
  7. data/lib/sexpr/grammar/parsing.rb +1 -1
  8. data/lib/sexpr/grammar/tagging.rb +16 -13
  9. data/lib/sexpr/loader.rb +1 -0
  10. data/lib/sexpr/matcher.rb +3 -2
  11. data/lib/sexpr/matcher/many.rb +16 -1
  12. data/lib/sexpr/matcher/non_terminal.rb +31 -0
  13. data/lib/sexpr/matcher/rule.rb +3 -6
  14. data/lib/sexpr/node.rb +1 -1
  15. data/lib/sexpr/parser.rb +1 -1
  16. data/lib/sexpr/processor.rb +11 -1
  17. data/lib/sexpr/processor/helper.rb +1 -1
  18. data/lib/sexpr/processor/sexpr_coercions.rb +6 -14
  19. data/lib/sexpr/rewriter.rb +0 -8
  20. data/lib/sexpr/version.rb +3 -3
  21. data/sexpr.gemspec +3 -3
  22. data/sexpr.noespec +13 -6
  23. data/spec/integration/bool_expr/test_not_push.rb +38 -0
  24. data/spec/integration/bool_expr/test_parsing.rb +15 -0
  25. data/spec/integration/bool_expr/test_tagging.rb +25 -0
  26. data/spec/integration/bool_expr/test_validation.rb +15 -0
  27. data/spec/{test_readme_examples.rb → integration/test_readme_examples.rb} +0 -0
  28. data/spec/spec_helper.rb +1 -1
  29. data/spec/unit/grammar/matching/test_compile_rule.rb +55 -0
  30. data/spec/{grammar → unit/grammar}/matching/test_compile_rule_defn.rb +0 -0
  31. data/spec/unit/grammar/matching/test_compile_rules.rb +45 -0
  32. data/spec/{grammar → unit/grammar}/options/test_install_parser.rb +0 -0
  33. data/spec/{grammar → unit/grammar}/options/test_install_path.rb +0 -0
  34. data/spec/{grammar → unit/grammar}/options/test_install_root.rb +0 -0
  35. data/spec/{grammar → unit/grammar}/tagging/test_looks_a_sexpr.rb +0 -0
  36. data/spec/{grammar → unit/grammar}/tagging/test_mod2rulename.rb +0 -0
  37. data/spec/{grammar → unit/grammar}/tagging/test_rule2modname.rb +0 -0
  38. data/spec/{grammar → unit/grammar}/tagging/test_tag_sexpr.rb +0 -0
  39. data/spec/unit/grammar/tagging/test_tagging_module_for.rb +72 -0
  40. data/spec/{grammar → unit/grammar}/test_new.rb +0 -0
  41. data/spec/{grammar → unit/grammar}/test_parse.rb +0 -0
  42. data/spec/{grammar → unit/grammar}/test_sexpr.rb +0 -0
  43. data/spec/{matcher → unit/matcher}/alternative/test_eat.rb +1 -1
  44. data/spec/{matcher → unit/matcher}/alternative/test_match_q.rb +0 -0
  45. data/spec/{matcher → unit/matcher}/many/test_eat.rb +0 -0
  46. data/spec/{matcher → unit/matcher}/many/test_initialize.rb +0 -0
  47. data/spec/{matcher → unit/matcher}/many/test_match_q.rb +0 -0
  48. data/spec/unit/matcher/non_terminal/test_eat.rb +31 -0
  49. data/spec/unit/matcher/non_terminal/test_match_q.rb +32 -0
  50. data/spec/{matcher → unit/matcher}/reference/test_eat.rb +0 -0
  51. data/spec/{matcher → unit/matcher}/reference/test_match_q.rb +0 -0
  52. data/spec/unit/matcher/rule/test_eat.rb +17 -0
  53. data/spec/unit/matcher/rule/test_match_q.rb +17 -0
  54. data/spec/{matcher → unit/matcher}/sequence/test_eat.rb +0 -0
  55. data/spec/{matcher → unit/matcher}/sequence/test_match_q.rb +0 -0
  56. data/spec/{matcher → unit/matcher}/terminal/test_eat.rb +1 -1
  57. data/spec/{matcher → unit/matcher}/terminal/test_match_q.rb +0 -0
  58. data/spec/{matcher → unit/matcher}/terminal/test_terminal_match.rb +0 -0
  59. data/spec/{node → unit/node}/test_sexpr_body.rb +0 -0
  60. data/spec/{node → unit/node}/test_sexpr_copy.rb +0 -0
  61. data/spec/{node → unit/node}/test_sexpr_type.rb +0 -0
  62. data/spec/{node → unit/node}/test_tracking_markers.rb +0 -0
  63. data/spec/{parser → unit/parser}/citrus/test_new.rb +0 -0
  64. data/spec/{parser → unit/parser}/citrus/test_parse.rb +0 -0
  65. data/spec/{parser → unit/parser}/citrus/test_recognize.rb +0 -0
  66. data/spec/{parser → unit/parser}/citrus/test_registration.rb +0 -0
  67. data/spec/{parser → unit/parser}/citrus/test_to_sexpr.rb +0 -0
  68. data/spec/{parser → unit/parser}/test_factor.rb +0 -0
  69. data/spec/{parser → unit/parser}/test_input_text.rb +0 -0
  70. data/spec/{processor → unit/processor}/helper/test_call.rb +0 -0
  71. data/spec/{processor → unit/processor}/test_apply.rb +0 -0
  72. data/spec/{processor → unit/processor}/test_build_helper_chain.rb +0 -0
  73. data/spec/{processor → unit/processor}/test_call.rb +0 -0
  74. data/spec/unit/processor/test_grammar.rb +56 -0
  75. data/spec/{processor → unit/processor}/test_helper.rb +0 -0
  76. data/spec/{processor → unit/processor}/test_sexpr_coercions.rb +6 -2
  77. data/spec/{processor → unit/processor}/test_use.rb +0 -0
  78. data/spec/{rewriter → unit/rewriter}/test_copy_and_apply.rb +0 -0
  79. data/spec/{test_load.rb → unit/test_load.rb} +3 -2
  80. data/spec/{test_rewriter.rb → unit/test_rewriter.rb} +0 -0
  81. data/spec/{test_sexpr.rb → unit/test_sexpr.rb} +1 -1
  82. data/tasks/gem.rake +9 -4
  83. data/tasks/test.rake +26 -0
  84. metadata +163 -117
  85. data/spec/grammar/matching/test_compile_rule.rb +0 -23
  86. data/spec/matcher/rule/test_eat.rb +0 -21
  87. data/spec/matcher/rule/test_match_q.rb +0 -24
  88. data/tasks/spec_test.rake +0 -71
  89. data/tasks/unit_test.rake +0 -76
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+ module Sexpr::Matcher
3
+ describe Rule, "eat" do
4
+
5
+ let(:rule){ Rule.new :hello, self }
6
+
7
+ def eat(seen)
8
+ @seen = seen
9
+ end
10
+
11
+ it 'delegates to the defn' do
12
+ rule.eat([:foo])
13
+ @seen.should eq([:foo])
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+ module Sexpr::Matcher
3
+ describe Rule, "match?" do
4
+
5
+ let(:rule){ Rule.new :hello, self }
6
+
7
+ def match?(seen)
8
+ @seen = seen
9
+ end
10
+
11
+ it 'delegates to the defn' do
12
+ rule.match?([:foo])
13
+ @seen.should eq([:foo])
14
+ end
15
+
16
+ end
17
+ end
@@ -17,4 +17,4 @@ module Sexpr::Matcher
17
17
  end
18
18
 
19
19
  end
20
- end
20
+ end
@@ -0,0 +1,56 @@
1
+ require 'spec_helper'
2
+ module Sexpr
3
+ describe Processor, ".grammar" do
4
+
5
+ subject{ clazz.grammar }
6
+
7
+ context 'on Processor itself' do
8
+ let(:clazz){ Processor }
9
+
10
+ it{ should be(Sexpr) }
11
+ end
12
+
13
+ context 'on a subclass defining a grammar' do
14
+ let(:clazz){
15
+ Class.new(Processor){
16
+ grammar :foo
17
+ }
18
+ }
19
+
20
+ it{ should eq(:foo) }
21
+ end
22
+
23
+ context 'on a subclass of a rewriter class defining a grammar' do
24
+ let(:superclazz){
25
+ Class.new(Processor){
26
+ grammar :foo
27
+ }
28
+ }
29
+ let(:clazz){
30
+ Class.new(superclazz)
31
+ }
32
+
33
+ it{ should eq(:foo) }
34
+ end
35
+
36
+ context 'on a subclass that overrides the grammar' do
37
+ let(:superclazz){
38
+ Class.new(Processor){
39
+ grammar :foo
40
+ }
41
+ }
42
+ let(:clazz){
43
+ Class.new(superclazz){
44
+ grammar :bar
45
+ }
46
+ }
47
+
48
+ it{ should eq(:bar) }
49
+
50
+ it 'should not override on the parent' do
51
+ superclazz.grammar.should eq(:foo)
52
+ end
53
+ end
54
+
55
+ end
56
+ end
@@ -3,8 +3,12 @@ module Sexpr
3
3
  class Processor
4
4
  describe SexprCoercions do
5
5
 
6
- let(:helper){ SexprCoercions.new }
7
- let(:processor){ Processor.new }
6
+ let(:helper){
7
+ SexprCoercions.new
8
+ }
9
+ let(:processor){
10
+ Rewriter.new
11
+ }
8
12
 
9
13
  it 'extends input sexprs' do
10
14
  sexpr = [:hello, "world"]
@@ -4,9 +4,10 @@ module Sexpr
4
4
 
5
5
  subject{ Sexpr.load(arg) }
6
6
 
7
- after do
7
+ before do
8
8
  subject.should be_a(Grammar)
9
- subject[:bool_expr].should be_a(Matcher::Alternative)
9
+ subject[:bool_expr].should be_a(Matcher::Rule)
10
+ subject[:bool_expr].defn.should be_a(Matcher::Alternative)
10
11
  end
11
12
 
12
13
  context "on a YAML path" do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../spec_helper', __FILE__)
1
+ require 'spec_helper'
2
2
  describe Sexpr do
3
3
 
4
4
  it "should have a version number" do
@@ -25,13 +25,18 @@
25
25
  #
26
26
  begin
27
27
  require 'rubygems/package_task'
28
- Gem::PackageTask.new($gemspec) do |t|
28
+
29
+ # Dynamically load the gem spec
30
+ gemspec_file = File.expand_path('../../sexpr.gemspec', __FILE__)
31
+ gemspec = Kernel.eval(File.read(gemspec_file))
32
+
33
+ Gem::PackageTask.new(gemspec) do |t|
29
34
 
30
35
  # Name of the package
31
- t.name = $gemspec.name
36
+ t.name = gemspec.name
32
37
 
33
38
  # Version of the package
34
- t.version = $gemspec.version
39
+ t.version = gemspec.version
35
40
 
36
41
  # Directory used to store the package files
37
42
  t.package_dir = "pkg"
@@ -49,7 +54,7 @@ begin
49
54
  t.need_zip = false
50
55
 
51
56
  # List of files to be included in the package.
52
- t.package_files = $gemspec.files
57
+ t.package_files = gemspec.files
53
58
 
54
59
  # Tar command for gzipped or bzip2ed archives.
55
60
  t.tar_command = "tar"
@@ -0,0 +1,26 @@
1
+ require "rspec/core/rake_task"
2
+ namespace :test do
3
+
4
+ desc "Run unit tests"
5
+ RSpec::Core::RakeTask.new(:unit) do |t|
6
+ t.pattern = "spec/unit/**/test_*.rb"
7
+ t.fail_on_error = true
8
+ t.failure_message = nil
9
+ t.verbose = true
10
+ t.rspec_path = "rspec"
11
+ t.rspec_opts = ["--color", "--backtrace"]
12
+ end
13
+
14
+ desc "Run unit tests"
15
+ RSpec::Core::RakeTask.new(:integration) do |t|
16
+ t.pattern = "spec/integration/**/test_*.rb"
17
+ t.fail_on_error = true
18
+ t.failure_message = nil
19
+ t.verbose = true
20
+ t.rspec_path = "rspec"
21
+ t.rspec_opts = ["--color", "--backtrace"]
22
+ end
23
+
24
+ task :all => [ :unit, :integration ]
25
+ end
26
+ task :test => [ :"test:all" ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sexpr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-13 00:00:00.000000000Z
12
+ date: 2013-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: epath
16
- requirement: &70208258266200 !ruby/object:Gem::Requirement
15
+ name: path
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.1
21
+ version: '1.3'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70208258266200
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: citrus
27
- requirement: &70208258265600 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,32 +37,47 @@ dependencies:
32
37
  version: '2.4'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70208258265600
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '2.4'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rake
38
- requirement: &70208258265040 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
42
52
  - !ruby/object:Gem::Version
43
- version: 0.9.2
53
+ version: '10.0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70208258265040
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rspec
49
- requirement: &70208258264540 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
53
68
  - !ruby/object:Gem::Version
54
- version: '2.8'
69
+ version: '2.10'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70208258264540
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '2.10'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: wlang
60
- requirement: &70208258263980 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
@@ -65,7 +85,12 @@ dependencies:
65
85
  version: 0.10.2
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *70208258263980
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 0.10.2
69
94
  description: Sexpr helps manipulating s-expressions in ruby.
70
95
  email:
71
96
  - blambeau@gmail.com
@@ -93,6 +118,7 @@ files:
93
118
  - lib/sexpr/loader.rb
94
119
  - lib/sexpr/matcher/alternative.rb
95
120
  - lib/sexpr/matcher/many.rb
121
+ - lib/sexpr/matcher/non_terminal.rb
96
122
  - lib/sexpr/matcher/reference.rb
97
123
  - lib/sexpr/matcher/rule.rb
98
124
  - lib/sexpr/matcher/sequence.rb
@@ -117,61 +143,69 @@ files:
117
143
  - spec/fixtures/foo.rb
118
144
  - spec/fixtures/preprocessed.rb
119
145
  - spec/fixtures/simple_processor.rb
120
- - spec/grammar/matching/test_compile_rule.rb
121
- - spec/grammar/matching/test_compile_rule_defn.rb
122
- - spec/grammar/options/test_install_parser.rb
123
- - spec/grammar/options/test_install_path.rb
124
- - spec/grammar/options/test_install_root.rb
125
- - spec/grammar/tagging/test_looks_a_sexpr.rb
126
- - spec/grammar/tagging/test_mod2rulename.rb
127
- - spec/grammar/tagging/test_rule2modname.rb
128
- - spec/grammar/tagging/test_tag_sexpr.rb
129
- - spec/grammar/test_new.rb
130
- - spec/grammar/test_parse.rb
131
- - spec/grammar/test_sexpr.rb
132
- - spec/matcher/alternative/test_eat.rb
133
- - spec/matcher/alternative/test_match_q.rb
134
- - spec/matcher/many/test_eat.rb
135
- - spec/matcher/many/test_initialize.rb
136
- - spec/matcher/many/test_match_q.rb
137
- - spec/matcher/reference/test_eat.rb
138
- - spec/matcher/reference/test_match_q.rb
139
- - spec/matcher/rule/test_eat.rb
140
- - spec/matcher/rule/test_match_q.rb
141
- - spec/matcher/sequence/test_eat.rb
142
- - spec/matcher/sequence/test_match_q.rb
143
- - spec/matcher/terminal/test_eat.rb
144
- - spec/matcher/terminal/test_match_q.rb
145
- - spec/matcher/terminal/test_terminal_match.rb
146
- - spec/node/test_sexpr_body.rb
147
- - spec/node/test_sexpr_copy.rb
148
- - spec/node/test_sexpr_type.rb
149
- - spec/node/test_tracking_markers.rb
150
- - spec/parser/citrus/test_new.rb
151
- - spec/parser/citrus/test_parse.rb
152
- - spec/parser/citrus/test_recognize.rb
153
- - spec/parser/citrus/test_registration.rb
154
- - spec/parser/citrus/test_to_sexpr.rb
155
- - spec/parser/test_factor.rb
156
- - spec/parser/test_input_text.rb
157
- - spec/processor/helper/test_call.rb
158
- - spec/processor/test_apply.rb
159
- - spec/processor/test_build_helper_chain.rb
160
- - spec/processor/test_call.rb
161
- - spec/processor/test_helper.rb
162
- - spec/processor/test_sexpr_coercions.rb
163
- - spec/processor/test_use.rb
164
- - spec/rewriter/test_copy_and_apply.rb
146
+ - spec/integration/bool_expr/test_not_push.rb
147
+ - spec/integration/bool_expr/test_parsing.rb
148
+ - spec/integration/bool_expr/test_tagging.rb
149
+ - spec/integration/bool_expr/test_validation.rb
150
+ - spec/integration/test_readme_examples.rb
165
151
  - spec/spec_helper.rb
166
- - spec/test_load.rb
167
- - spec/test_readme_examples.rb
168
- - spec/test_rewriter.rb
169
- - spec/test_sexpr.rb
152
+ - spec/unit/grammar/matching/test_compile_rule.rb
153
+ - spec/unit/grammar/matching/test_compile_rule_defn.rb
154
+ - spec/unit/grammar/matching/test_compile_rules.rb
155
+ - spec/unit/grammar/options/test_install_parser.rb
156
+ - spec/unit/grammar/options/test_install_path.rb
157
+ - spec/unit/grammar/options/test_install_root.rb
158
+ - spec/unit/grammar/tagging/test_looks_a_sexpr.rb
159
+ - spec/unit/grammar/tagging/test_mod2rulename.rb
160
+ - spec/unit/grammar/tagging/test_rule2modname.rb
161
+ - spec/unit/grammar/tagging/test_tag_sexpr.rb
162
+ - spec/unit/grammar/tagging/test_tagging_module_for.rb
163
+ - spec/unit/grammar/test_new.rb
164
+ - spec/unit/grammar/test_parse.rb
165
+ - spec/unit/grammar/test_sexpr.rb
166
+ - spec/unit/matcher/alternative/test_eat.rb
167
+ - spec/unit/matcher/alternative/test_match_q.rb
168
+ - spec/unit/matcher/many/test_eat.rb
169
+ - spec/unit/matcher/many/test_initialize.rb
170
+ - spec/unit/matcher/many/test_match_q.rb
171
+ - spec/unit/matcher/non_terminal/test_eat.rb
172
+ - spec/unit/matcher/non_terminal/test_match_q.rb
173
+ - spec/unit/matcher/reference/test_eat.rb
174
+ - spec/unit/matcher/reference/test_match_q.rb
175
+ - spec/unit/matcher/rule/test_eat.rb
176
+ - spec/unit/matcher/rule/test_match_q.rb
177
+ - spec/unit/matcher/sequence/test_eat.rb
178
+ - spec/unit/matcher/sequence/test_match_q.rb
179
+ - spec/unit/matcher/terminal/test_eat.rb
180
+ - spec/unit/matcher/terminal/test_match_q.rb
181
+ - spec/unit/matcher/terminal/test_terminal_match.rb
182
+ - spec/unit/node/test_sexpr_body.rb
183
+ - spec/unit/node/test_sexpr_copy.rb
184
+ - spec/unit/node/test_sexpr_type.rb
185
+ - spec/unit/node/test_tracking_markers.rb
186
+ - spec/unit/parser/citrus/test_new.rb
187
+ - spec/unit/parser/citrus/test_parse.rb
188
+ - spec/unit/parser/citrus/test_recognize.rb
189
+ - spec/unit/parser/citrus/test_registration.rb
190
+ - spec/unit/parser/citrus/test_to_sexpr.rb
191
+ - spec/unit/parser/test_factor.rb
192
+ - spec/unit/parser/test_input_text.rb
193
+ - spec/unit/processor/helper/test_call.rb
194
+ - spec/unit/processor/test_apply.rb
195
+ - spec/unit/processor/test_build_helper_chain.rb
196
+ - spec/unit/processor/test_call.rb
197
+ - spec/unit/processor/test_grammar.rb
198
+ - spec/unit/processor/test_helper.rb
199
+ - spec/unit/processor/test_sexpr_coercions.rb
200
+ - spec/unit/processor/test_use.rb
201
+ - spec/unit/rewriter/test_copy_and_apply.rb
202
+ - spec/unit/test_load.rb
203
+ - spec/unit/test_rewriter.rb
204
+ - spec/unit/test_sexpr.rb
170
205
  - tasks/debug_mail.rake
171
206
  - tasks/debug_mail.txt
172
207
  - tasks/gem.rake
173
- - tasks/spec_test.rake
174
- - tasks/unit_test.rake
208
+ - tasks/test.rake
175
209
  - tasks/yard.rake
176
210
  homepage: https://github.com/blambeau/sexp
177
211
  licenses: []
@@ -185,6 +219,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
219
  - - ! '>='
186
220
  - !ruby/object:Gem::Version
187
221
  version: '0'
222
+ segments:
223
+ - 0
224
+ hash: -1636299260156006054
188
225
  required_rubygems_version: !ruby/object:Gem::Requirement
189
226
  none: false
190
227
  requirements:
@@ -193,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
230
  version: '0'
194
231
  requirements: []
195
232
  rubyforge_project:
196
- rubygems_version: 1.8.10
233
+ rubygems_version: 1.8.25
197
234
  signing_key:
198
235
  specification_version: 3
199
236
  summary: A compilation framework around s-expressions
@@ -202,53 +239,62 @@ test_files:
202
239
  - spec/fixtures/foo.rb
203
240
  - spec/fixtures/preprocessed.rb
204
241
  - spec/fixtures/simple_processor.rb
205
- - spec/grammar/matching/test_compile_rule.rb
206
- - spec/grammar/matching/test_compile_rule_defn.rb
207
- - spec/grammar/options/test_install_parser.rb
208
- - spec/grammar/options/test_install_path.rb
209
- - spec/grammar/options/test_install_root.rb
210
- - spec/grammar/tagging/test_looks_a_sexpr.rb
211
- - spec/grammar/tagging/test_mod2rulename.rb
212
- - spec/grammar/tagging/test_rule2modname.rb
213
- - spec/grammar/tagging/test_tag_sexpr.rb
214
- - spec/grammar/test_new.rb
215
- - spec/grammar/test_parse.rb
216
- - spec/grammar/test_sexpr.rb
217
- - spec/matcher/alternative/test_eat.rb
218
- - spec/matcher/alternative/test_match_q.rb
219
- - spec/matcher/many/test_eat.rb
220
- - spec/matcher/many/test_initialize.rb
221
- - spec/matcher/many/test_match_q.rb
222
- - spec/matcher/reference/test_eat.rb
223
- - spec/matcher/reference/test_match_q.rb
224
- - spec/matcher/rule/test_eat.rb
225
- - spec/matcher/rule/test_match_q.rb
226
- - spec/matcher/sequence/test_eat.rb
227
- - spec/matcher/sequence/test_match_q.rb
228
- - spec/matcher/terminal/test_eat.rb
229
- - spec/matcher/terminal/test_match_q.rb
230
- - spec/matcher/terminal/test_terminal_match.rb
231
- - spec/node/test_sexpr_body.rb
232
- - spec/node/test_sexpr_copy.rb
233
- - spec/node/test_sexpr_type.rb
234
- - spec/node/test_tracking_markers.rb
235
- - spec/parser/citrus/test_new.rb
236
- - spec/parser/citrus/test_parse.rb
237
- - spec/parser/citrus/test_recognize.rb
238
- - spec/parser/citrus/test_registration.rb
239
- - spec/parser/citrus/test_to_sexpr.rb
240
- - spec/parser/test_factor.rb
241
- - spec/parser/test_input_text.rb
242
- - spec/processor/helper/test_call.rb
243
- - spec/processor/test_apply.rb
244
- - spec/processor/test_build_helper_chain.rb
245
- - spec/processor/test_call.rb
246
- - spec/processor/test_helper.rb
247
- - spec/processor/test_sexpr_coercions.rb
248
- - spec/processor/test_use.rb
249
- - spec/rewriter/test_copy_and_apply.rb
242
+ - spec/integration/bool_expr/test_not_push.rb
243
+ - spec/integration/bool_expr/test_parsing.rb
244
+ - spec/integration/bool_expr/test_tagging.rb
245
+ - spec/integration/bool_expr/test_validation.rb
246
+ - spec/integration/test_readme_examples.rb
250
247
  - spec/spec_helper.rb
251
- - spec/test_load.rb
252
- - spec/test_readme_examples.rb
253
- - spec/test_rewriter.rb
254
- - spec/test_sexpr.rb
248
+ - spec/unit/grammar/matching/test_compile_rule.rb
249
+ - spec/unit/grammar/matching/test_compile_rule_defn.rb
250
+ - spec/unit/grammar/matching/test_compile_rules.rb
251
+ - spec/unit/grammar/options/test_install_parser.rb
252
+ - spec/unit/grammar/options/test_install_path.rb
253
+ - spec/unit/grammar/options/test_install_root.rb
254
+ - spec/unit/grammar/tagging/test_looks_a_sexpr.rb
255
+ - spec/unit/grammar/tagging/test_mod2rulename.rb
256
+ - spec/unit/grammar/tagging/test_rule2modname.rb
257
+ - spec/unit/grammar/tagging/test_tag_sexpr.rb
258
+ - spec/unit/grammar/tagging/test_tagging_module_for.rb
259
+ - spec/unit/grammar/test_new.rb
260
+ - spec/unit/grammar/test_parse.rb
261
+ - spec/unit/grammar/test_sexpr.rb
262
+ - spec/unit/matcher/alternative/test_eat.rb
263
+ - spec/unit/matcher/alternative/test_match_q.rb
264
+ - spec/unit/matcher/many/test_eat.rb
265
+ - spec/unit/matcher/many/test_initialize.rb
266
+ - spec/unit/matcher/many/test_match_q.rb
267
+ - spec/unit/matcher/non_terminal/test_eat.rb
268
+ - spec/unit/matcher/non_terminal/test_match_q.rb
269
+ - spec/unit/matcher/reference/test_eat.rb
270
+ - spec/unit/matcher/reference/test_match_q.rb
271
+ - spec/unit/matcher/rule/test_eat.rb
272
+ - spec/unit/matcher/rule/test_match_q.rb
273
+ - spec/unit/matcher/sequence/test_eat.rb
274
+ - spec/unit/matcher/sequence/test_match_q.rb
275
+ - spec/unit/matcher/terminal/test_eat.rb
276
+ - spec/unit/matcher/terminal/test_match_q.rb
277
+ - spec/unit/matcher/terminal/test_terminal_match.rb
278
+ - spec/unit/node/test_sexpr_body.rb
279
+ - spec/unit/node/test_sexpr_copy.rb
280
+ - spec/unit/node/test_sexpr_type.rb
281
+ - spec/unit/node/test_tracking_markers.rb
282
+ - spec/unit/parser/citrus/test_new.rb
283
+ - spec/unit/parser/citrus/test_parse.rb
284
+ - spec/unit/parser/citrus/test_recognize.rb
285
+ - spec/unit/parser/citrus/test_registration.rb
286
+ - spec/unit/parser/citrus/test_to_sexpr.rb
287
+ - spec/unit/parser/test_factor.rb
288
+ - spec/unit/parser/test_input_text.rb
289
+ - spec/unit/processor/helper/test_call.rb
290
+ - spec/unit/processor/test_apply.rb
291
+ - spec/unit/processor/test_build_helper_chain.rb
292
+ - spec/unit/processor/test_call.rb
293
+ - spec/unit/processor/test_grammar.rb
294
+ - spec/unit/processor/test_helper.rb
295
+ - spec/unit/processor/test_sexpr_coercions.rb
296
+ - spec/unit/processor/test_use.rb
297
+ - spec/unit/rewriter/test_copy_and_apply.rb
298
+ - spec/unit/test_load.rb
299
+ - spec/unit/test_rewriter.rb
300
+ - spec/unit/test_sexpr.rb