copy method Null safety

Parser<R> copy()

Returns a shallow copy of the receiver.

Override this method in all subclasses, return its own type.

Implementation

Parser<R> copy();