position function

  1. @useResult
Parser position()

Returns a parser that reports the current input position.

For example, the parser position() returns the current index in the input string.

Implementation

@useResult
Parser position() => PositionParser();