class Parser::Source::Range

A range of characters in a particular source buffer.

The range is always exclusive, i.e. a range with ‘begin_pos` of 3 and `end_pos` of 5 will contain the following characters:

example
   ^^

@!attribute [r] source_buffer

@return [Parser::Source::Buffer]

@!attribute [r] begin_pos

@return [Integer] index of the first character in the range

@!attribute [r] end_pos

@return [Integer] index of the character after the last character in the range

@api public