term method

  1. @override
Parser<Term> term()
override

Implementation

@override
Parser<Term> term() => super.term().map((each) {
      final name = each[0];
      final rest = each[1];
      if (rest == null) {
        return Term(name.toString(), const []);
      }
      final List terms = rest[1];
      return Term(name.toString(), terms.cast());
    });