Sha256: edf7f1d15560a773dc3a632e5879a53f7c756dc5095258032cd0edf19d406252

Contents?: true

Size: 485 Bytes

Versions: 76

Compression:

Stored size: 485 Bytes

Contents

module Treetop
  module Runtime
    class TerminalParseFailure
      attr_reader :index

      def initialize(index, expected_string)
        @index = index
        @caller = caller
        @expected_string = expected_string
      end

      def expected_string
        "#{@expected_string} from #{@caller.map{|s| s.sub(/\A.*:([0-9]+):in `([^']*)'.*/,'\2:\1')}*" from "}\n\t"
      end

      def to_s
        "String matching #{expected_string} expected."
      end
    end
  end
end

Version data entries

76 entries across 46 versions & 4 rubygems

Version Path
depengine-0.0.31 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.31 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.30 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.30 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.29 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.29 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.28 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.28 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.27 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.27 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.26 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.26 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.25 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.25 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.24 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.24 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.23 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.23 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.22 etc/isolate/jruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb
depengine-0.0.22 etc/isolate/ruby-1.8/gems/treetop-1.4.8/lib/treetop/runtime/terminal_parse_failure_debug.rb