aList method

Parser<AList> aList()

A complete a_list.

Implementation

Parser<AList> aList() => (ref0(id) &
            ref1(token, '=') &
            ref0(id) &
            (ref1(token, ';') | ref1(token, ',') | ref0(whitespaceOrComments)).optional() &
            ref0(aList).optional())
        .map((List result) {
      final properties = <String, String>{result[0]: result[2]};

      AList? more = result.last;
      if (more != null) {
        properties.addAll(more.properties);
      }

      return AList(properties);
    });