settable method

  1. @useResult
SettableParser<R> settable()

Returns a parser that points to the receiver, but can be changed to point to something else at a later point in time.

For example, the parser letter().settable() behaves exactly the same as letter(), but it can be replaced with another parser using SettableParser.set.

Implementation

@useResult
SettableParser<R> settable() => SettableParser<R>(this);