private NSArray parseArray() throws ParseException {
  skip();
  skipWhitespacesAndComments();
  List<NSObject> objects=new LinkedList<NSObject>();
  while (!accept(ARRAY_END_TOKEN)) {
    objects.add(parseObject());
    skipWhitespacesAndComments();
    if (accept(ARRAY_ITEM_DELIMITER_TOKEN)) {
      skip();
    }
 else {
      break;
    }
    skipWhitespacesAndComments();
  }
  read(ARRAY_END_TOKEN);
  return new NSArray(objects.toArray(new NSObject[objects.size()]));
}

private NSArray parseArray ( ) throws ParseException { skip ( ) ; skipWhitespacesAndComments ( ) ; List < NSObject > objects = new LinkedList < NSObject > ( ) ; while ( ! accept ( ARRAY_END_TOKEN ) ) { objects . add ( parseObject ( ) ) ; skipWhitespacesAndComments ( ) ; if ( accept ( ARRAY_ITEM_DELIMITER_TOKEN ) ) { skip ( ) ; } else { break ; } skipWhitespacesAndComments ( ) ; } read ( ARRAY_END_TOKEN ) ; return new NSArray ( objects . toArray ( new NSObject [ objects . size ( ) ] ) ) ; }
parses an array from the current parsing position . the prerequisite for calling this method is , that an array begin token has been read .
