decrease property

Parser<String> decrease
getter/setter pair

A parser that decreases the current indentation and returns it, but does not consume anything.

Implementation

late Parser<String> decrease = epsilon()
    .where((_) => stack.isNotEmpty)
    .map((_) => current = stack.removeLast(), hasSideEffects: true);