attrList method
A complete attr_list
.
Implementation
Parser<AttrList> attrList() =>
(ref1(token, '[') & ref0(aList).optional() & ref1(token, ']') & ref0(attrList).optional())
.map((result) {
final aLists = <AList>[result[1]];
AttrList? more = result.last;
if (more != null) {
aLists.addAll(more.aLists);
}
return AttrList(aLists);
});