parameter method

  1. @override
Parser<Node> parameter()
override

Implementation

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