File: terminal_syntax_node.rb

package info (click to toggle)
ruby-treetop 1.6.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 956 kB
  • sloc: ruby: 8,918; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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