Sha256: 01c0dc5d95a8fac8b1de7fa83fb50ee96feb0cb1c5fe3e6a19a6d2f724737c27

Contents?: true

Size: 349 Bytes

Versions: 8

Compression:

Stored size: 349 Bytes

Contents

module Treetop
  module Runtime
    class TerminalSyntaxNode < SyntaxNode

      def initialize(input, interval)
        super(input, interval, [])
      end

      def inspect(indent="")
        indent+
          self.class.to_s.sub(/.*:/,'') +
          " offset=#{interval.first}" +
          " #{text_value.inspect}"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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