epsilon function Null safety

Parser<void> epsilon()

Returns a parser that consumes nothing and succeeds.

For example, char('a').or(epsilon()) is equivalent to char('a').optional().

Implementation

Parser<void> epsilon() => epsilonWith<void>(null);