Sha256: 3da764b4e02b0d42255f7f60c4ae9af7f5085d136fc04d892535a4db06b364b0

Contents?: true

Size: 421 Bytes

Versions: 8

Compression:

Stored size: 421 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

8 entries across 8 versions & 1 rubygems

Version Path
treetop-1.6.14 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.12 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.11 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.10 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.9 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.8 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.7 lib/treetop/runtime/terminal_parse_failure.rb
treetop-1.6.6 lib/treetop/runtime/terminal_parse_failure.rb