Sha256: 33acd35a66508c796bdcf889a98f5c56c3f23e46bfe70b7553f24efbf472d3af
Contents?: true
Size: 556 Bytes
Versions: 9
Compression:
Stored size: 556 Bytes
Contents
require_relative 'token_range' module Rley # This module is used as a namespace module PTree # This module is used as a namespace class ParseTreeNode # Link to the grammar symbol attr_reader(:symbol) # A range of indices for tokens corresponding to the node. attr_reader(:range) def initialize(aSymbol, aRange) @symbol = aSymbol @range = TokenRange.new(aRange) end def range=(aRange) range.assign(aRange) end end # class end # module end # module # End of file
Version data entries
9 entries across 9 versions & 1 rubygems