TrimmingParserExtension<R> extension
- on
-
- Parser<
R>
- Parser<
Methods
-
trim(
[Parser< void> ? left, Parser<void> ? right]) → Parser<R> -
Available on Parser<
Returns a parser that consumes input before and after the receiver, discards the excess input and only returns the result of the receiver. The optional arguments are parsers that consume the excess input. By defaultR> , provided by the TrimmingParserExtension extensionwhitespace()
is used. Up to two arguments can be provided to have different parsers on theleft
andright
side.