class PDF::Reader::Parser

def array

reads a PDF array from the buffer and converts it to a Ruby Array.
###############################################################################
def array
  a = []
  loop do
    item = parse_token
    break if item.kind_of?(Token) and item == "]"
    raise MalformedPDFError, "unterminated array" if @buffer.empty?
    a << item
  end
  a
end