epsilonWith<R> function

  1. @useResult
Parser<R> epsilonWith<R>(
  1. R result
)

Returns a parser that consumes nothing and succeeds with result.

Implementation

@useResult
Parser<R> epsilonWith<R>(R result) => EpsilonParser<R>(result);