kaiseki 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/kaiseki.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Kaiseki
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  file_path = File.dirname __FILE__
4
4
 
5
5
  #load basic kaiseki classes
data/lib/parser_choice.rb CHANGED
@@ -6,7 +6,14 @@ module Kaiseki
6
6
  error = true
7
7
  @expected.each do |n|
8
8
  begin
9
- return n.parse stream, options
9
+ value = catch :SkipSuccess do
10
+ return n.parse stream, options
11
+ end
12
+ if value == :NotImplemented
13
+ next
14
+ else
15
+ throw :SkipSuccess
16
+ end
10
17
  rescue ParseError
11
18
  next
12
19
  end
data/lib/parser_symbol.rb CHANGED
@@ -6,7 +6,7 @@ module Kaiseki
6
6
  options[:grammar].rules[@expected].parse stream, options.merge(:rule => @expected)
7
7
  else
8
8
  STDERR.puts "skipping #{self}: not implemented"
9
- throw :SkipSuccess
9
+ throw :SkipSuccess, :NotImplemented
10
10
  end
11
11
  else
12
12
  raise "can't use #{self} without a grammar"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 2
9
- version: 1.0.2
8
+ - 3
9
+ version: 1.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - William Hamilton-Levi