Sha256: efd0d4c34718ecbd793911ff87ba51ad33ceff5fd213dab83fa797c70fe431b3

Contents?: true

Size: 407 Bytes

Versions: 6

Compression:

Stored size: 407 Bytes

Contents

module Treetop
  module Runtime
    class TerminalParseFailure
      attr_reader :index, :expected_string, :unexpected

      def initialize(index, expected_string, unexpected = false)
        @index = index
        @expected_string = expected_string
	@unexpected = unexpected
      end

      def to_s
	"String matching #{expected_string} #{@unexpected ? 'not ' : ''}expected."
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
treetop-1.6.5 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.4 lib/treetop/runtime/terminal_parse_failure.rb
swift-pyrite-0.1.1 vendor/bundle/ruby/2.0.0/gems/treetop-1.6.3/lib/treetop/runtime/terminal_parse_failure.rb
swift-pyrite-0.1.0 vendor/bundle/ruby/2.0.0/gems/treetop-1.6.3/lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.3 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.2 lib/treetop/runtime/terminal_parse_failure.rb